An inner planet (Or a terrestrial planet) is defined as a planet composed of rock and metals.
An outer planet (Or a Jovian planet) is defined as a gaseous planet with no stable surface.
With this being said, we can apply these definitions to all of the solar system's planets to identify which are inner and outer planets.
-Mercury: Mercury is composed of mostly metal. Because of this, it falls into the category of an inner planet.
-Venus: While Venus is known for having a very toxic gaseous atmosphere, the composition of the planet itself is made of rock and iron, classifying it as an inner planet.
-Earth: The planet we live on is made of rock & metal and as such is an inner planet.
-Mars: Mars, under its dusty exterior, is made of volcanic rock, becoming the last of the inner planet category.
-Jupiter: The largest planet in the solar system, Jupiter is mainly made of hydrogen and falls into the category of an outer planet.
-Saturn: Saturn is also composed of mainly hydrogen, making it an outer planet.
-Uranus: Liquid hydrogen and ammonia mainly make up Uranus, but methane is also in the atmosphere, which makes the planet appear blue. This is another outer planet.
-Neptune: The farthest away from the Sun, this outer planet is mainly composed of water, silicates, and various gases such as hydrogen and helium.
Therefore, the inner planets are Mercury, Venus, Earth, and Mars, and the outer planets are Jupiter, Saturn, Uranus, and Neptune.
<em>Hope this helped! :)</em>