Speed varies with Distance travelled w.r.t time
[tex]\boxed{\sf Speed=\dfrac{Distance}{Time}}[/tex]
Whereas velocity varies with displacement w.r.t time.
[tex]\boxed{\sf Velocity=\dfrac{Displacement}{Time}}[/tex]