Elements bond in fixed ratios and so can be represented by a chemical formula. For example, sodium chloride has the same number of sodium ions and chloride ions, so its formula is NaCl ...
For example, the formula H 2 O shows that a water molecule contains two hydrogen atoms and one oxygen atom.