In a transverse wave, the particles of the medium vibrate perpendicular to the direction of the wave's propagation. An example of a transverse wave is a wave on a string.
In a longitudinal wave, the particles of the medium vibrate parallel to the direction of the wave's propagation. An example of a longitudinal wave is a sound wave.