That's the most important part I think, hydrogen and helium make up 98% of the universe as they were produced immediately after the big bang, all other elements matter much less.
There's also the fact that the chemical behaviour of an element does not matter much at the temperatures encountered in stars - the properties we expect of a metal, for example, actually depend on the atoms being cool enough to stick together. If you heat up iron to 3000°C it stops being a metal and just behaves like any other dense, hot gas. But since hydrogen and helium are so much lighter than other elements they will still have different behaviour at such temperatures (for example, they rise to the surface of a star)
D180 t1_je4o60e wrote
Reply to comment by SkoomaDentist in Is NaCl relatively common in the galaxy/universe? by PHealthy
That's the most important part I think, hydrogen and helium make up 98% of the universe as they were produced immediately after the big bang, all other elements matter much less.
There's also the fact that the chemical behaviour of an element does not matter much at the temperatures encountered in stars - the properties we expect of a metal, for example, actually depend on the atoms being cool enough to stick together. If you heat up iron to 3000°C it stops being a metal and just behaves like any other dense, hot gas. But since hydrogen and helium are so much lighter than other elements they will still have different behaviour at such temperatures (for example, they rise to the surface of a star)