Trend in electron configuration across a period
Each period starts with a new highest energy shell
Across period 2, the 2s sub-shell fills with two electrons, followed by the 2p sub-shell with 6 electrons (same pattern of filling for period 3 for 3s and 3p sub-shells)
Across period 4, although 3d sub-shell is involved, highest shell number is n=4 - from n=4 sub-shell only the 4s and 4p sub-shells are occupied