What characteristic makes a star and a comet different from each other?

A comet revolves around a star.
A star is composed of gas.
A comet is brighter than a star.
A star has a bright tail behind it.