how electricity and magnetism are related?
Electricity and magnetism are closely related. Flowing electrons produce a magnetic field, and spinning magnets cause an electric current to flow. Electromagnetism is the interaction of these two important forces.