In a given period, the number of shells is equal and in a given group, the number of electrons in the valence shell is the same.
In a given period, the number of shells is equal and in a given group, the number of electrons in the valence shell is the same.