Comets are in orbits with very big semimajor axes. It appears
that they mostly live far from the sun.
When they get close to the sun, they acquire long tails.
Here is Halley's comet:
Davison E. Soper, Institute of Theoretical Science,
University of Oregon, Eugene OR 97403 USA
What is it made of, what makes the tail?