Depending on the initial mass, stars can reach one of the three end stages. White dwarf is one such stage of stars having initial mass less than 8 times the mass of the Sun. These stars undergo huge expansion and their radius increases by a factor of 100 to 200. These stars appear reddish because of their large size and lower temperature. Hence, these stars are also called red giant stars
At the end of their evolution, these stars explode, their outer gas envelope is thrown outward and the inner part contracts to the size of the earth. However, the density in the star becomes very high. In this stage, the pressure due to electrons becomes independent of temperature and sufficient to balance the gravitational force for ever.
The outer gaseous envelop which is thrown out during the formation of a white dwarf which is at the centre.
In this stage, such stars look white and due to their small size they are called white dwarfs.