In a longitudinal wave, the motion of the medium is parallel to the direction of the wave .
A transverse wave is a wave in which the motion of the medium is a right angles to the direction of the wave.
Simplified answer:
Longitudinal wave move left and right.( does not goes up and down) Example-sound wave.
Transverse wave move up and down. Example-water wave, light wave