s, p, d, ... are names that describes the shape of orbitals.
For atoms: each electron ocupy one orbital. If an atoms have many elements you describe it with something like:
1 s^2 2s^2 2p^3
( 1: means first energy level, s (shape s) 2 electrons ) (second leve, in shape s there are 2 electrons, second level in shape p there are 3 electrons...)