please elaborate about magnetism and electromagnetism in detail..
Anytime an electric charge moves, a magnetic field is created. You might wonder if moving magnets (or a changing magnetic field) would create an electric current or get electric charges to move. The answer is yes, it can. This aspect of electromagnetism is often used to create electricity in electric generators