Magnetism is a phenomenon by which materials exert attractive or repulsive forces on other materials. This force is produced by the motion of electric charges, either within the material or from external sources.
Materials that can be magnetized or are attracted to magnets are called magnetic materials. Some common magnetic materials include iron, nickel, and cobalt.
Magnets have two poles - a north pole and a south pole. Like poles repel each other, while opposite poles attract each other.
A magnetic field is the area around a magnet where the magnetic force is exerted. The magnetic field lines run from the north pole to the south pole, and are closer together where the force is stronger.
Electromagnetism is the relationship between electricity and magnetism. When an electric current flows through a wire, it generates a magnetic field around the wire. This forms the basis for electromagnets and many electrical devices.