A white dwarf is a small, very dense, hot star that is made mostly of carbon. These faint stars are what remain after a red giant star loses its outer layers. They are about the size of the Earth and will eventually lose their heat to become a cold, dark black dwarf. The sun will eventually turn into a white dwarf and then a black dwarf.
Acknowledgement: NASA and H.Richer (University of British Columbia)