Comets
Comets are icy bodies, composed mainly of gases, rocks, and dust, that orbit the Sun. The size of a comet is about a few kilometers across so they aren't much larger than a typical town or locale.
Humans have known about comets since ancient times as back then, without significant light pollution, observers could visually see comets periodically and at moderate frequency.
Comets are not like planets and moons because they are constantly on the move, shifting their positions within the sky. In many images, comets and meteorites may look indistinguishable but meteorites burn up quickly in our atmosphere whereas comets stay moving for sufficiently long times.
The orbits of comets are nothing like planets and moons. Comets have extremely elliptical(oval-shaped) orbits and usually have very long orbital periods, too. An example of a comet with these orbital features is the famous Halley's Comet(pictured above), which last appeared near Earth in 1986 and will re-appear in the year 2061.
Parts of a Comet
Nucleus
At first glance, comets seem like nothing more than an icy body with a projected atmosphere(known as the coma) of gas and dust caused by the Sun. While this is true, there is a source that provides new material for the atmosphere to have because the atmospheres/comas of comets deplete due to strong gravity from other bodies in the Solar System. The source that refreshes the atmospheres of comets is known as the nucleus of a comet. The nuclei of most comets are made up of rock, dust, water ice, frozen carbon dioxide(CO2), methane(CH4), and ammonia(NH3). Because of this combination of different ices, the model used to describe comet nuclei is often called the "dirty snowball" model. The surface of the nucleus of a comet is generally very rocky and dusty compared to the ices beneath.
According to relatively recent research, there have been traces of more hydrocarbons, organic compounds, and even amino acids(like glycine) found within the nuclei of comets.
Coma
The atmosphere of a comet is known as the coma, and it usually sublimates(goes from solid to gas) as the Sun warms it up to higher temperatures. Comas are primarily made up of water and dust, but most of the water outflows from the coma because sunlight causes it to undergo a process known as photodissociation. Through this process, photons interact with the water molecules and cause them to dissociate into ions which get released from the coma.
Tails
Comets also form notable tails as extensions of their coma, and so much of the water and dust found in the coma are projected out into space. The tails of comets always point away from the Sun due to radiation from the Sun and the stream of charged particles exerted from the Sun, known as the solar wind.
As you can see from the diagram above outlining the parts of a comet, the tails of comets have two distinctive components: the ionized gas tail, known as the ion tail, and the dust tail.
The ion tail is formed because the Sun's UV(ultra-violet) radiation ionizes the gas in the coma. The dust tail, however, is simply formed by the ejection of dust from the coma.
The dust tail curves significantly relative to the ion tail, which is projected straight out from the comet. This is because the dust tail follows the comet's orbits so many of the particles simply trace out the curve of the comet due to their inertia. This is no different from how tires from a vehicle make curved tracks in the road if you turn very hard. However, the ion tail directly interacts with the solar wind because its ions carry a net electric charge. This causes the ion tail to repel from the solar wind and project straight out from the comet.
Citations/Attributions
Astronomy. Provided by: Openstax. Located at: https://openstax.org/books/astronomy/pages/1-introduction License: CC BY 4.0