While there are trace amounts of other elements, these two make up the vast majority of a star's composition.