The study of the absorption of electromagnetic radiation by molecules and their corresponding spectra.