The number of shells in the elements of 3rd period of the modern periodic table is-
3
All the elements of the same group in a periodic table have the same number of valence electrons. Whereas all the elements of the same period have the same number of shells.
The outermost shell is called the valence shell; the period number refers to this shell.
Elements in the 3rd period will have 3 shells.
Na: [Ne] 3s1
Mg: [Ne] 3s2