These are spectra of stars of different types, from O type (the hottest) through to M type (the coldest). You can see that the patterns of the dark lines are very different in each case.
◄ 1 Spectra: how we learned what stars are made of