What is the classification system used by astronomers for stars based on decreasing surface temperature?

Answer

O, B, A, F, G, K, M

The modern spectral classification system, which ranges from O (hottest and blue) to M (coolest and red), is entirely dependent on the star's surface temperature reading.

What is the classification system used by astronomers for stars based on decreasing surface temperature?
astronomystarcelestial bodymassFeature