The stellar spectrum

How is the stellar spectrum different from the blackbody spectrum? What does the spectrum tell you about the stellar structure? Explain