They are subshells — the divisions within each electron shell, and the answer filed here was correct in four words.
Electrons occupy a principal shell, labelled by the quantum number n, and within each shell sit subshells labelled s, p, d and f. The letters come from spectroscopy: sharp, principal, diffuse, fundamental.
Which subshells exist depends on the shell: n=1 has only s, n=2 has s and p, n=3 adds d, and f first appears at n=4. That pattern is what produces the shape of the periodic table, including the lanthanides and actinides sitting in their own separate block at the bottom.