How does the elements having similar properties are placed in the same group or period?

Elements are placed in groups have same number of valence electrons.

Ex- Elements Na and K of first group have 1 valence electron.


Elements are placed in period have same number of shells.


Ex- Elements C, N and O of second period have K and L shells.


4