The Sun also has traces of neon, sodium, magnesium, aluminum, silicon, phosphorus, sulfur, potassium, and iron. The percentages quoted here are by the relative number of atoms. The Sun's Interior Here are the parts of the Sun starting from the center and moving outward. It is where the energy from nuclear fusion is generated. Because of the enormous amount of gravity compression from all of the layers above it, the core is very hot and dense.
Nuclear fusion requires extremely high temperatures and densities.
The Sun's core is about 16 million K and has a density around 160 times the density of water. However, the Sun's interior is still gaseous all the way to the core because of the extreme temperatures. There is no molten rock like that found in the interior of the Earth. The radiative zone is where the energy is transported from the superhot interior to the colder outer layers by photons. Technically, this also includes the core.