Groups in PT

The elements of one and the same group have a same number of valency electrons.
From top to bottomthe number of main levels increases, just like the atom number.

Periods in PT

All elements within one period have a same number of main levels. From left to right the atom number increases.