Metals and nonmetals on the periodic table