The block of elements in the periodic table consisting of the lanthanoid series (from cerium to lutetium) and the actinoid series (from thorium to lawrencium). They are characterized by having two s-electrons in their outer shell (n) and f-electrons in their inner (n–1) shell.