Tails of comets are visible due to:
Tyndall Effect
The Tyndall effect, also known as Tyndall scattering, is the phenomena of scattering of light by particles in a colloid or in a very fine suspension. Tail of comets is seen as a Tyndall cone due to the scattering of light by the tiny solid particles left by the comet in its path.