This question is related with colloids which you will learn in higher classes
A colloid is one of the three primary types of mixtures, with the other two being a solution and suspension. A colloid is a solution that has particles ranging between 1 and 1000 nanometers in diameter, yet are still able to remain evenly distributed throughout the solution.
A common method of classifying colloids is based on the phase of the dispersed substance and what phase it is dispersed in.These phases can be solid,liquid or gas.
gel is an example of particular class of colloids.In gels dispersed phase is liquid and dispersion medium is solid.
So gel is neither a liquid or a solid, but a mixture contains both liquid and solid mixed together. The solid part is a very fine, three-dimensional network, providing countless microscopic pores which are filled with liquid. This network is usually made up of very large molecules.