sulfur, because it's in the same group
Groups are columns of a periodic table. Both oxygen and sulfur are in the same group, and groups, such as halogens and noble gases, generally display similar properties. Periods are ordered by ascending atomic number, and don't typically display the same level of similarity.