Between two charged objects, there may exist either an attracting or a repulsive force known as the electric force. When two items have opposing charges, the electric forces between them are attracted, and when two objects have the same charge, the electric forces between them are repulsive. Electric forces are distinct from magnetic forces, despite the fact that the two types of forces are intricately intertwined.
In practise, it is usually not too difficult to see static electric forces at work. For example, traditional foam or packing peanuts have a tendency to adhere to hands and other surfaces of the environment. This is because peanuts have a charge on their surface, and this charge attracts charges that are opposite to itself, such those found in hands or other things. Taking off a wool hat may also cause your hair to stand on end in a similar manner. Because the hat rubs against the hair, it acquires an electrical charge, and as a result, each individual hair also acquires a charge. Because the hairs contain charges that are similar to one another, they strive to separate from one another and stand on end as a result.
Electric forces and magnetic forces are both the result of electric charges, however whereas electric forces may be caused by either static or moving charges, magnetic forces can only be produced when the charged object they are acting on is moving. Because electrons move among the atoms that make up particular metals, it is conceivable for such metals to behave in a way that makes them suitable for use as permanent magnets. Because the presence or absence of electrons is what causes electric charges, the movement of electrons around an atom really results in the production of a very weak magnetic field.