what creates a comets tail
A comet is made up of material that gets evaporated easily by the Sun, so comets lose mass with each passage around the Sun. As much as one percent of their masses can be blown away. Comets may start out very icy, but this is not how they'll look for long, since the ice is the first thing to go.