Kirchoff and others went on to identify a score of other terrestrial elements in the sun, and now the Fraunhofer mystery — the hundreds of black lines in the solar spectrum — could be understood as the absorption spectra of these elements to the outermost layers of the sun, as they were transilluminated from within.
Source: wiktionary