When we're examining a comet, we generally split the comet into four different parts. This is it's nucleus at it's center, it's coma (the gas surrounding it), it's gas tail and it's dust tail - this is why you'll see astronomers say that a comet has two tails, one of dust and one of gas.