Answer:
There are basically seven spectral types which are used for classifying the stars and it is arranged in the order of increasing temperature from the hottest temperature to the coldest division are: O, B, A, F, G, K, and M. These categories are basically divided into the sub category in the spectral where O is the hottest type and M is the coldest type.