Answer:
After a star becomes a red giant, what happens next depends on how massive the star is. If its mass is relatively small, gravity eventually leads to the star contracting to form a white dwarf. It fades and changes colour as it cools. The matter in a white dwarf is millions of times denser than the matter on Earth.