Here's why:
* Spectral Lines: When light from a star is passed through a prism or diffraction grating, it separates into a spectrum of colors. This spectrum will have dark lines (absorption lines) at specific wavelengths.
* Unique Signatures: Each element in a star's atmosphere absorbs light at specific wavelengths, creating a unique "fingerprint" in the star's spectrum.
* Temperature: The strength and position of these absorption lines are sensitive to the star's temperature. Hotter stars have stronger lines in the ultraviolet, while cooler stars have stronger lines in the red.
* Composition: By analyzing the specific wavelengths of absorption lines, astronomers can determine the chemical composition of a star.
* Size: The width of spectral lines can reveal information about a star's size. Larger stars tend to have broader lines.
In essence, studying the spectrum of a star provides a wealth of information about its physical properties, allowing astronomers to understand its nature and evolution.