The Sun is a typical star. The nearest star after the Sun is so far away that light takes over 4 years to travel that distance. If I expressed this huge distance in kilometres, it would mean nothing to most people. We say that the nearest star is over four light years away. A light year is the distance light travels in one year.
Stars are so far away that they look like points of light.
Clearly, the Earth is not typical of this composition. The Earth is mainly rock and metal. However, if we look at the stars, their chemistry is different. The Sun, as I've said before, is a typical star. It has a mass 300,000 times that of the Earth.