I'm not sure what "the five distant planets" means. There are four outer planets in the solar system: Jupiter, Saturn, Uranus and Neptune.
Jupiter and Saturn are mainly hydrogen and helium, and are usually called "gas giants" for this reason.
Uranus and Neptune have substantial atmospheres of hydrogen and helium, but also contain large amounts of methane, water, and ammonia; they're sometimes also called gas giants, but sometimes "ice giants" because in astronomer language, the words "gas" and "ice" don't have their ordinary everyday meanings.
Hydrogen and helium are "gases." Things that, at normal Earth temperatures, are gases or liquids are "ices" as long as they have melting points of at least 100 K. Things that are still solid at very high temperatures are "rocks", even if they're actually metals, because "metal" to an astronomer means "anything that isn't hydrogen or helium".
To add a fifth, we'd need to come in to Mars, which is a rocky body just like Earth is.
They are made of less dense materials. While the inner planets are made primarily of rock, the outer planets are made mostly of hydrogen and helium.
The four outermost planets (Jupiter, Saturn, Uranus, Neptune) are mostly made of hydrogen and helium gas, with smaller amounts of other elements like water, ammonia, and methane. These planets are known as gas giants because of their composition and lack of a solid surface.
The four outer gas giants.
Well, if you take all the planets together, taking into account that Jupiter and Saturn are enormous and consist mostly of hydrogen and helium gasses, then you'd have to say that the planets are made mostly of hydrogen and helium gas. But if you are allowed to give separate answers for the different planets, you'd say that the four terrestrial planets are made mostly out of silicate (rocky) material with a core of nickel-iron alloy, that Jupiter and Saturn are made mostly of a mixture of hydrogen and helium gasses, and that Urnaus and Neptune are made mostly of hydrogen and helium gases with substantial cores of water ice.
Inner planets are made mostly of rock, although the Earth also has quite a substantial metallic core, of nickel and iron.
Earth and the other planets are mostly made of rock.
because they are made of mostly metal and rock while the bigger planets are mostly made of gas
Ices.
No, those are the outer planets.
They are made mostly of hydrogen and helium.
Gases
The inner planets are mostly made of iron and rock.
Rocks
venus and earth.
They are made mostly of hydrogen and helium.
The inner planets Mercury, Venus, Earth and Mars are small, heavy and mostly made of rock. The outer planets Jupiter, Saturn, Uranus and Neptune are huge, light and mostly made of gas.
An inner planet is mostly made of iron and has more mass than outer planets, outer planets are mostly made of gasses, makeing them have less mass. The inner planets are the planets between the asteroid belt and the sun