Look at the first (yellow) row in the table above. Hydrogen and Helium are
elements 1 and 2, respectively, and have those numbers of electron (we always
assume neutral atoms in the table). The electron configurations are H: 1s
1
and He:
1s
2
. After that, the n=1 shell is full; it contains only an s-orbital and that can only
hold two electrons. I've placed He over next to H in this table just to show that it
lines up with all of the elements below it. We generally place it on the far right
(like the first table) for another reason (I'll get to that later).
Now the blue row: Here the n=2 row is being filled. First the s-orbital is filled with
two electrons (Li and Be), then across to the six p-
orbital electrons, ending with Neon, which has a full n=2 shell - no more electrons
will fit into the n=2 shell. Notice that He, Ne and all of the atoms below Ne have
full shells with increasing n. These atoms also happen to be the least
reactive atoms in the table - food for thought.
Now the n=3 shell (pink): First the 3s orbital is filled with two electrons (Na, Mg),
then we skip over to the 3p orbitals, filling them until we get to Argon (Ar). What
happens next is perfectly in keeping with the diagonal rule that we learned in
the last section. First the 4s orbital, because it is of lower energy than the 3d
orbitals, is filled (K and Ca), then we fill the 3d orbitals in the next row down.