Elements in the same group have similar properties. the periodic table starts by assembling chemicals into the following categories, like metals, semimetals, and nonmetals. most will use same colors to color code the elements into groups with the same chemical property.
The similarity in their properties arises from the fact that they have an equal number of valence shell electrons.