(1) The magnetic properties of a substance arise due to the presence of electrons in their atoms or molecules.
(2) The electrons while revolving around the nucleus in various orbits, also spin around their own axes. Both these motions of electrons result in generating magnetic field and magnetic moments. Hence electron be haves as a tiny magnet.
(3) An atomic orbital can accommodate maximum two electrons with opposite spins, clockwise and anticlockwise. The degenerate orbitals like p, d and f orbitals can accommodate electrons with same spins until they are half filled.
(4) When a substance contains one or more unpaired electrons spinning in same direction, then their magnetic moments and magnetic properties add and the substance is said to be paramagnetic.
If a substance contains all electrons paired then their spins are balanced and magnetic moments and magnetic properties are cancelled and the substance is said to be diamagnetic.