The Fraunhofer lines are a set of spectral absorption lines. They are dark absorption lines, seen in the optical spectrum of the Sun, and are formed when atoms in the solar atmosphere absorb light being emitted by the solar photosphere. The lines are named after German physicist Joseph von Fraunhofer, who observed them in 1814.
A demonstration of the 589 nm D2 (left) and 590 nm D1 (right) emission sodium D lines using a wick with salt water in a flame
A spectral line is a weaker or stronger region in an otherwise uniform and continuous spectrum. It may result from emission or absorption of light in a narrow frequency range, compared with the nearby frequencies. Spectral lines are often used to identify atoms and molecules. These "fingerprints" can be compared to the previously collected ones of atoms and molecules, and are thus used to identify the atomic and molecular components of stars and planets, which would otherwise be impossible.
Continuous spectrum of an incandescent lamp (mid) and discrete spectrum lines of a fluorescent lamp (bottom)