It doesn't.  It has no atmosphere.  Comets, (dirty iceballs) as they approach the sun and getted heated, start to give off particles (kinda like a mist).  It is highly reflective and begins to appear as a "tail" behind the comet.