Spectral Classes of Stars
Stars are classified into seven main spectral types: O, B, A, F, G, K, and M. This classification is based on the elements they absorb and their temperature.
The hottest stars are type O (blue), while the coolest are type M (red). Our Sun is a type G (yellow) star. An easy way to remember the order is the phrase "Oh Be A Fine Girl/Guy, Kiss Me."
When adding spectral types to your H-R Diagram, place them along the X-axis with O-type stars on the left (hottest) and M-type stars on the right (coolest). This classification helps astronomers communicate about star types using a standard system.