Dark lines on solar spectrum are due to
Lack of certain elements
Black body radiation
Absorption of certain wavelengths by outer layers
Scattering
Due to the absorption of certain wavelengths by the elements in outer layers of sun.