Line spectra of different elements vary due to difference in wavelengths of emitted light.
To the unaided eye, the various wavelengths denoting colors of light given by an element are combined together, and appear as a single color that is a combination of the constituent colors.
Electrons in atoms usually occupy the lowest energy states possible (ground state). However, electrons can be excited to high energy states when they absorb excess energy.
When they return to the ground state, they release this excess energy in the form of light. Each atom or molecule releases a single photon of light for each electron energy transition it makes.
To learn more about Line spectra here
https://brainly.com/question/13599564
#SPJ4