Light travels at 300,000 km/s. It has properties of both waves and particles. Spectral lines identify elements in stars - each element produces a unique set of lines. Astronomers use spectral lines and Wien's and Stefan-Boltzmann laws to determine surface temperatures of stars and planets from their emitted light.