Nucleic acids also typically contain phosphorous, and nitrogen plays an important structural role in nucleic acids and proteins. The proteins, being made up a diverse set of amino acids, have, in addition to carbon, hydrogen, oxygen, and nitrogen, the elements sulfur and selenium.