The Sun's composition is approximately 71% hydrogen, 26.5% helium, and about 2.5% heavier elements (oxygen, carbon, nitrogen, etc.). These ratios are determined by spectroscopic analysis of the Sun's photosphere. Option D matches these accepted values.