How does magnetic field work?
Magnetic field is is that area where a test charge experiences some knid of force. Magnetic field in the area enclosed by the magnetic field lines i.e. they are imaginary which helps us in telling the intensity of magnetic field.