This is created by moving charges. If an electric charge starts running, it creates a magnetic field.
James Clerk Maxwell is the "final boss" of this topic. He wrote four famous equations. Usually, they look like math-vomit, but here is what they actually say: electromagnetic theory for complete idiots pdf
Point your in the direction of the current (where the electricity is flowing). Curl your fingers. This is created by moving charges
Let’s be honest: when you hear the words "Electromagnetic Theory," your brain probably visions a dusty chalkboard covered in terrifying Greek symbols and a professor who hasn't seen sunlight since the 90s. He wrote four famous equations
This is created by stationary charges. Think of a sock sticking to your shirt in the dryer.
Electromagnetic theory isn't about memorizing math; it’s about understanding that the entire world is connected by invisible, wiggling strings of energy. Once you see the "field," the math starts to make a lot more sense.
If you are a visual learner, his "Essence of Calculus" and physics videos are better than any PDF. Summary for the "Complete Idiot"