Here's what each spectral class looks like in Nightbase's simulator, and the star on your next clear night where you can verify it.
B stars — hot enough for helium
At 25,000 K, Spica (B1 IV) is hot enough to ionise helium. A B-star spectrum is sparse: a few sharp He I lines (447, 471, 501 nm), a handful of faint Balmer lines, almost nothing else. The continuum blazes blue because the Planck curve peaks in the ultraviolet.
Rigel (B8 Ia), cooler at 12,100 K, sits at the B/A boundary. He I has started to fade; Balmer lines are growing fast.
A stars — the Balmer showcase
At ~9,500 K, hydrogen is at its sweet spot. Vega (A1 V, 9,600 K) and Sirius (A1 V, 9,984 K) display the most violent Balmer absorption of any class: Hα at 656 nm carves a canyon out of the red; Hβ (486 nm), Hγ (434 nm), Hδ (410 nm) march in ever-closer spacing toward the ultraviolet, tracing the quantised energy levels of Bohr's hydrogen atom exactly.
Open Vega's detail page and scroll to the Stellar Absorption Spectrum panel. The four great hydrogen gashes are unmistakable. Compare it to Sirius on Sirius's page — nearly identical. That's why Sirius and Vega were once used as flux standards: their spectra are simple, reproducible, and dominated by one well-understood element.
F and G stars — the Sun's neighbourhood
Cool off to 6,500 K and Balmer weakens. What takes over are calcium II H and K at 393 and 397 nm — the two deepest lines in any Sun-like spectrum — plus a forest of iron lines and the sodium D doublet at 589 nm. This is Procyon (F5 IV-V, 6,516 K), and it is our own Sun (G2 V, 5,778 K). If you'd like to see a G-star spectrum tonight, look at Capella (G1 III + K0 III) — the brightest G-type star in our sky.
Sunlight through a CD
You don't need a spectroscope to see Fraunhofer lines. Angle an old CD or DVD toward a sunlit wall until it reflects the bright rainbow onto a piece of white paper. In the yellow band, look carefully: a pair of fine dark slits cuts the rainbow. That's the sodium D doublet — the same line that lights up sodium street lamps at night.
K stars — calcium takes over
Arcturus (K0 III, 4,291 K) is the canonical K-giant spectrum: Ca II H and K are now bottomless, Na D is obvious, hydrogen is a faint footnote. Aldebaran (K5 III, 3,881 K) pushes further down — faint TiO bands begin to appear in the red.
M stars — the molecule-dominated world
Below ~3,700 K, atoms can keep their electrons, and some atoms can even form molecules. Betelgeuse (M4 Ib, 3,479 K) and Antares (M1.5 Iab-Ib, 3,497 K) are the showpieces. Their spectra are barely recognisable: instead of sharp atomic needles, broad titanium oxide (TiO) bands mow down entire swaths of the red and near-infrared. The star still glows red-hot, but whole wavelength ranges are absorbed away by molecules in its atmosphere.
Open Betelgeuse's page and the simulator makes the jaw drop. The continuum sags in orange channels around 620, 670, and 705 nm where TiO devours photons. Hydrogen is invisible. Metals are lost in the molecular noise.