Are elements with similar chemical properties found in the same period or group on the periodic table?

A.
period

B.
group