Final answer:
The force due to attraction or repulsion between electric charges is known as the electromagnetic force, which includes electrostatic attraction and electrostatic repulsion.
Step-by-step explanation:
The force that arises due to the attraction or repulsion of electric charges is called the electromagnetic force. This is a fundamental force of nature that operates between charged particles, causing them to be attracted toward each other if the charges are opposite, or repelled from each other if the charges are the same. This can be observed as electrostatic attraction and electrostatic repulsion, respectively. For instance, the electron, which carries a negative electric charge, is held in the vicinity of a nucleus due to the attractive electromagnetic forces between the electron and the positively charged protons in the nucleus.