Grade (Age) Levels: High School (14-18+)

The spectrum of an object is a graph of the intensity of radiation vs wavelength. A blackbody will give a continuous spectrum. But what causes the lines in the other types of spectra? Can these lines help in the understanding of the properties of the matter responsible for the various spectra?