When a photon meets a molecule, three things can happen. The photon can be absorbed, promoting the molecule to an excited state and disappearing from the beam. The molecule can return to the ground state and emit a photon, often at a different wavelength because some of the excitation energy has dissipated as heat. Or the photon can scatter off the molecule, either elastically (no energy change) or inelastically (a small energy exchange with a vibrational mode). Each outcome is the basis of a family of techniques.
Absorption techniques include UV-Vis (electronic transitions in solution), IR and FTIR (vibrational transitions), AAS (electronic transitions in atomic vapour) and NMR (nuclear-spin transitions in a magnetic field). The Beer-Lambert law A = εbc applies wherever absorption is read against a baseline: absorbance is linearly proportional to analyte concentration over a working range, with ε the molar absorptivity, b the path length and c the concentration. Quantitation under Beer-Lambert is the bread-and-butter use of every absorption spectrometer in the lab.
Emission techniques include atomic emission (AES, ICP-OES) where excited atoms in a flame or plasma radiate their characteristic lines, and molecular fluorescence and phosphorescence where electronically excited molecules drop back to the ground state. Fluorescence is fast (nanoseconds) because the singlet-to-singlet drop is spin-allowed. Phosphorescence is slow (milliseconds to seconds) because it goes through an intermediate triplet state and the triplet-to-singlet drop is spin-forbidden by selection rules. The slow time-scale is exploited in phosphorescence imaging and in time-resolved measurements that suppress prompt fluorescence background.
Scattering techniques include Rayleigh scattering (elastic, no energy change, dominates atmospheric optics and is the reason the sky is blue) and Raman scattering (inelastic, the photon loses or gains energy equal to a vibrational quantum). Raman is the one with forensic teeth: a molecule in a sample shifts the scattered light by its vibrational frequencies, and the shift pattern is a vibrational fingerprint complementary to IR. Modern handheld Raman units used by NSG and CISF for explosive screening at airports are running this physics in a 1.5 kg case.