While other elements like helium, carbon, oxygen, and nitrogen are present, hydrogen makes up the vast majority of a star's mass (around 70-75%). It's the fuel that powers nuclear fusion in the star's core, producing energy and light.