UV spectroscopy involves passing UV or visible light through a sample and measuring the intensity of light before and after it passes through the sample. The difference in intensity indicates the amount of light absorbed. The absorption spectrum, which plots absorbance against wavelength, reveals information about the electronic structure of the sample.