Chemical composition is defined as the relative ratio of the atoms in a molecule or a compound considering their particular arrangement in a substance.
For eg :
H2O contains Hydrogen and Oxygen in the ratio of 2:1.
CO2 contains carbon and Oxygen in the ratio 1:2