Stellar classification

In astronomy, stars are classified into different types depending on their spectra; this is connected to other properties of the star such as temperature and apparent color. Currently, there are seven main types, which are in order of decreasing temperature: O, B, A, F, G, K, and M.