Carbon atoms can form strong covalent bonds with other carbon atoms, creating long chains, branched structures, and rings (catenation). Carbon also forms strong bonds with many other elements, including hydrogen, oxygen, nitrogen, sulfur, and halogens. Carbon can form single, double, and triple bonds. This versatility allows carbon to form an enormous variety of stable compounds.