How was it discovered that the Sun is made up of helium and hydrogen?

Answer:
Spectroscopic analysis. Hydrogen was immediately indentified, and another element that could not be identified at first - so it was named "the sun's element", that is: "Helium". Soon after that, Helium was discovered on earth, and is well-known now, but it retains it's initial name.
First answer by Melos Antropon. Last edit by Melos Antropon. Contributor trust: 188 [recommend contributor recommended]. Question popularity: 2 [recommend question].