Magnet
Rare earth (lanthanoid) elements have a partially occupied "f" electron shell (which can accommodate up to 14 electrons). The spin of these electrons can be aligned, resulting in very strong magnetic fields, and therefore, these elements are used in compact high-strength magnets where their higher price is not a concern. The most common types of rare-earth magnets are samarium-cobalt and neodymium-iron-boron (NIB) magnets.
Superconducting magnet
Although the idea of making electromagnets with superconducting wire was proposed by Heike Kamerlingh Onnes shortly after he discovered superconductivity in 1911, a practical superconducting electromagnet had to await the discovery of superconducting materials that could support large critical supercurrent densities in high magnetic fields. The first successful superconducting magnet was built by G.B. Yntema in 1955 using niobium wire and achieved a field of 0.7 T at 4.2 K. Then, in 1961, J.E. Kunzler, E. Buehler, F.S.L. Hsu, and J.H. Wernick made the discovery that a compound of niobium and tin could support critical-supercurrent densities greater than 100,000 amperes per square centimeter in magnetic fields of 8.8 tesla. Despite its brittle nature, niobium-tin has since proved extremely useful in supermagnets generating magnetic fields up to 20 tesla.