Steve, The full spectrum looks like a rainbow and the colours relate to elements. Wherever the vertical lines cross the spectrum tells you what chemicals/elements are in the star/object.
Here is a site with a fairly simple explanation.
http://outreach.atnf.csiro.au/educat...trographs.html