The third period contains only eight elements even though the electron capacity of the third shell is 18 because when the other shells get filled and the resultant number of electrons becomes eighteen, it gets added up and settles in the third electron shell and three shells are acquired by the fourth period.