Answer:
(i) In transverse waves, the displacement of the particle is perpendicular to the direction of propagation of the wave. Below is the picture which explains how waves move sideways when the particles move up and down.
Example of Transverse wave: The ripples on the surface of the water, The secondary waves of an earthquake, Electromagnetic waves, The waves on a string, Stadium or human wave, The ocean waves.
(ii) In a longitudinal wave, the displacement of the particle is parallel to the direction of the wave propagation. What you see in the picture is the wavefront progressing forward and the particles compressing and expanding in the same direction. This wave is marked by periodic compression and rarefaction zones, where the medium expands.
Example of Longitudinal wave: Sound waves in air, The primary waves of an earthquake.