The periodic table groups elements into which of the following three categories?

The three categories are metals, nonmetals, and metalloids.