What is the difference between longitudinal waves and transverse waves?

what is the difference between longitudinal waves and transverse waves? give examples for each

image