Nonmetallic elements form ions by
gaining
valence electrons to complete their outer shell.
The
more
valence electrons an element has in its outer shell, the easier it is to complete.
The
electron shells an element has, the easier it is to fill its outermost shell.
Reactivity in nonmetals
as you go from left to right in a group, and
as you go from top to bottom.