A compound contains atoms of different elements chemically combined together in a fixed ratio. An element is a pure chemical substance made of same type of atom. Compounds contain different elements in a fixed ratio arranged in a defined manner through chemical bonds.
Elements :-it is a element means its a single element like o,n,fe,mg etc.
compound :-it is a mixture of elements.
hcl,hno3,nacl..