The spectrum of light from the Sun tells us what it is made of.

The less-dense gas in the layers of the Sun above the visible surface (the photosphere) absorb light from the photosphere, giving a dark line spectrum. This enables us to learn what at least the outer layers of the Sun are made of.

The element helium was discovered this way.

A certain amount of detailed analysis is needed. Here is what is found. For each element listed I show the approximate fraction of the mass of the gas near the surface of the Sun that is made of that element.

Some comments:

Davison E. Soper, Institute of Theoretical Science, University of Oregon, Eugene OR 97403 USA soper@bovine.uoregon.edu