In a transverse wave the particles of the medium vibrate at right angles to the direction of wave travel.
In a longitudinal wave the particles of the medium vibrate parallel to the direction of wave travel.
A piano string exhibits transverse motion.
Sound in a fluid (air) travels as a longitudinal wave.