When a gas cloud forms stars, it forms many at the same time, with a wide variety of masses. The more massive ones are more luminous and have hotter surface temperatures, so they appear at the upper left of this diagram, called the Hertzsprung-Russell diagram or simply HR diagram. The diagonal line of stars seen here is called the main sequence, with the least massive stars at the lower right end. All stars begin their lives on this sequence, fusing hydrogen into helium.
The more massive stars are so much more luminous that they use up their hydrogen more quickly despite starting with a larger store. (Note: luminosity is plotted on a magnitude scale here, so the uppermost points here are nearly a million solar luminosities.) Thus, stars leave the main sequence in an orderly fashion: most massive first, and then gradually less and less massive stars. At any given time, them, the "main sequence turn-off" (the kink where stars are just leaving the main sequence) is a key indicator of the age of that cluster of stars. Move the slider to the right and see for yourself!
Food for thought: