Hydrogen and oxygen from pairs with atoms of their own kind. Elements that form these molecules of two atoms of the same elements are called diatomic. The diatomic elements are hydrogen, oxygen, nitrogen, fluorine, bromine, and iodine. The formulas for their diatomic molecules are as follow.
H2, O2, N2, F2, Cl2, Br2, I2