Groups vs. periods
A group is a vertical column, and elements in the same group share similar chemical behavior because they have the same number of outer-shell electrons. A period is a horizontal row, and moving across it reflects the outer shell gradually filling up, which is why properties change more dramatically as you move across a row than down a column.
Why the table is arranged this way at all
The table is ordered by atomic number (the number of protons), but its shape exists because chemical properties repeat in a predictable pattern as that number increases — the entire point of the "periodic" table is that this repetition, not the raw atomic number, is what determines an element's column.
Frequently Asked Questions
Why are lanthanides and actinides shown as a separate block?
Purely for layout — if they were placed in their correct position within the main table, it would need to be roughly twice as wide. They are chemically part of specific periods; the separate rows are a space-saving convention, not a chemical distinction.
Which groups are metals and which are nonmetals?
Most of the table is metals, concentrated on the left and center. Nonmetals are mostly clustered on the upper right, including the halogens and noble gases, with a diagonal band of metalloids sitting between the two.