scientists have known since the early part of the 19 century that electricity and magnetism are closely related.
moving electric charges creates an electric current, which creates a magnetic field.
a changing magnetic field can also create an electric current.
how did this knowledge come about?