How are planets different from stars?
Stars produce light and heat through nuclear fusion and are much more massive than planets. Not all planets are rocky, like Earth (for example jupiter). Jupiter’s atmosphere contains hydrogen like a star, but it is a gas giant planet because it is not massive enough for nuclear fusion to occur. Planets orbit stars, while strars may be orbited by planets (or other stars in the case of binary stars).