Based on its position on the periodic table, which of the following elements is a nonmetal?
A. potassium (K)
B. vanadium (V)
C. nickel (Ni)
D. bromine (Br)