The main difference between transverse and longitudinal waves in physics are presented in a simple and easy-to-read way as follows:
You can also check out the difference between electric and magnetic force.
The difference between transverse and longitudinal waves are pictured in the following diagrams.
Setup a longitudinal wave with its waveform.
Setup a transverse wave with definitions of amplitude and wavelength.