We known that stars are like our sun for lots of reasons the two best are...
When we look at the light from the sun (it's spectra) we can tell what it is made of, when we look at start's light we see they are made of the same thing. We can also image other suns with scopes like hubble.
|