Line spectra are unique patterns of light emitted or absorbed by atoms and molecules, corresponding to specific energy transitions of electrons. These spectra serve as 'fingerprints' for identifying elements and compounds, and are fundamental to understanding atomic structure and quantum mechanics.