The stars are a ball of gases.
They emit light because of these gases..........
and so they twinkle.
2 2 2
Stars do not really twinkle, they just appear to twinkle when seen from the surface of Earth. The stars twinkle in the night sky because of the effects of our atmosphere. When starlight enters our atmosphere it is affected by winds in the atmosphere and by areas with different temperatures and densities.
Actually stars  are not blinking r twinkling .it is b'coz of our eye light receiver cell where is not so sensitive to the dim light b'coz of this u c the star as twinkle (where u r receiver cell is more sensitive at the edge of u r eye)  but u can c the star some what properly with inclining  u r point of c'in the star( with respect to star ,c it in 60 degree angle)   .where the light from stars comes from long distance where it take billions of years to reach us ,where those light will be fainted .