Comets are icy members of the solar system that originate from either the Oort cloud or Kuiper belt. They travel in elliptical orbits around the sun and are composed of a nucleus of ice and dust surrounded by a coma of evaporated gases and ions. As comets near the sun, they develop two tails - an ion tail pushed away by solar wind and a dust tail curved by sunlight. Periodic comets like Halley's comet have orbits lasting less than 200 years, while long-period comets may take over 200 years or be non-repeating. Comets undergo changes in appearance as they travel from their icy state far from the sun to developing comas and tails when close to the sun.