Original: The spectral class of a star is a designated class of a star describing the ionization of its chromosphere, what atomic excitations are most prominent in the light, giving an objective measure of the temperature in this chromosphere.
Simplified: Spectral types are named with a letter: M, K, G, F, A, B and O. M stars are the coldest stars and O stars are the hottest.