atom of different elements absorb characteristic wavelengths of light. analysing a sample to see if contains a particular element means using light form that element. for example with lead, a lamp containing lead emits light mix of wavelengths to be absorbed by any lead atoms from the sample.