The idea
The modern periodic table arranges elements by atomic number. Elements in the same main group often show similar valence behaviour.
Why can elements with different total numbers of electrons show similar reactions?
For many main-group elements, similar outer-electron configurations lead to similar bonding behaviour despite different inner shells.