First element has 1 valence electron and last element has 8 valence electrons. Number of shells remain the same in the same period.