The difference in how the galaxies appear is due to which type of stars shine brightest in the optical and ultraviolet wavelengths. Ultraviolet images of galaxies show mainly clouds of gas containing newly formed stars that are many times more massive than the Sun and glow strongly in ultraviolet light. In contrast, visible light images of galaxies show mostly the yellow and red light of older stars. By comparing these types of data, astronomers can learn about the structure and evolution of galaxies.