Transverse waves as well as longitudinal waves can travel through any medium, a solid or a liquid or a gas.
What is a longitudinal wave ? In which medium : solid, liquid or gas, can it be produced ?
What is a transverse wave ? In which medium : solid, liquid or gas, can it be produced ?