Diatomic molecules are molecules composed only of two atom
The atom is a basic unit of matter that consists of a dense central nucleus surrounded by a cloud of negatively charged electrons. The atomic nucleus contains a mix of positively charged protons and electrically neutral neutrons...

s, of either the same or different chemical element
Chemical element
A chemical element is a pure chemical substance consisting of one type of atom distinguished by its atomic number, which is the number of protons in its nucleus. Familiar examples of elements include carbon, oxygen, aluminum, iron, copper, gold, mercury, and lead.As of November 2011, 118 elements...

s. The prefix di- means two in Greek. Common diatomic molecules are hydrogen
Hydrogen is the chemical element with atomic number 1. It is represented by the symbol H. With an average atomic weight of , hydrogen is the lightest and most abundant chemical element, constituting roughly 75% of the Universe's chemical elemental mass. Stars in the main sequence are mainly...

 (H2), nitrogen
Nitrogen is a chemical element that has the symbol N, atomic number of 7 and atomic mass 14.00674 u. Elemental nitrogen is a colorless, odorless, tasteless, and mostly inert diatomic gas at standard conditions, constituting 78.08% by volume of Earth's atmosphere...

 (N2), oxygen
Oxygen is the element with atomic number 8 and represented by the symbol O. Its name derives from the Greek roots ὀξύς and -γενής , because at the time of naming, it was mistakenly thought that all acids required oxygen in their composition...

 (O2), and carbon monoxide
Carbon monoxide
Carbon monoxide , also called carbonous oxide, is a colorless, odorless, and tasteless gas that is slightly lighter than air. It is highly toxic to humans and animals in higher quantities, although it is also produced in normal animal metabolism in low quantities, and is thought to have some normal...

 (CO). Seven elements exist in the diatomic state in the liquid and solid forms: H2, N2, O2, F2, Cl2, Br2, and I2.