Question: how many types of stars are there?
Answer: Stars are classified by their spectra and their temperature. There are seven main types of stars. In order of decreasing temperature, O, B, A, F, G, K, and M.