A diffraction grating is an optical element that divides(disperses) light composed of lots of different wavelengths(e.g., white light) into light components by wavelength. The simplest type of grating is one with a large number of evenly spaced parallel slits.