What composition defines rocky planets orbiting stars, in stark contrast to the star itself?

Answer

Composed overwhelmingly of heavier elements like silicon and iron

While stars are made mostly of light elements (hydrogen and helium), the terrestrial or rocky worlds that form nearby accrete the heavier, less volatile elements that were left behind after the star consumed the surrounding hydrogen.

What composition defines rocky planets orbiting stars, in stark contrast to the star itself?
hydrogenimportancestarFusion