Tie a rope to a post and flick your end up and down once. A hump runs along the rope toward the post, but a ribbon tied to the middle of the rope only goes up and back down; it never moves toward the post. The wave travels horizontally while the rope moves vertically, at right angles. That right angle is what makes a wave transverse, and the high and low points of the rope are its crests and troughs.
To pass on a sideways motion, each piece of the medium has to drag its neighbor sideways, so the medium must resist being bent or sheared. Ropes, strings and solids can do that; the inside of a liquid or a gas cannot. That is why transverse S-waves cross solid rock but stop at the liquid outer core of the Earth. Electromagnetic waves are transverse without any medium: their electric and magnetic fields point across the direction of travel.
Sound looks transverse in textbook diagrams, where it is drawn as a wavy line, but that line is a graph of air pressure, not a picture of the air. The air molecules actually move back and forth along the direction the sound travels, so sound in air is longitudinal. To classify any wave, compare the direction the medium moves with the direction the wave moves.
Think of it like this. A stadium wave is a transverse wave made of people: each fan stands up and sits down, at right angles to the way the wave races around the stands, and nobody changes seat. Real transverse waves differ in one detail: each piece of the medium is pulled along by its neighbors, while each fan simply watches the person beside them.
Core idea. In a transverse wave the medium moves at right angles to the direction the wave travels, so the wave has crests and troughs and a sideways direction that can be polarized.