We classify stars based on their spectra. The sequence of spectral classes in essence tells us the temperature of the star. From hottest to coolest the classes are O, B, A, F, G, K, M.
@evilscientistca and BTW
Only Bad Astronomers Forget Generally Known Mnemonics
@kmicu Though I prefer Anne Jump Cannon's Mnemonic...