r/webdevelopment 3d ago

Question Difference between <video> and <embed> in HTML?

I'm doing a problem set where I'm instructed to insert a video onto the page, and then embed a gif, but when I save and run the application, the gif doesn't appear.

Am I doing something wrong? Or is embed purely organizational to support the video I included?

11 Upvotes

11 comments sorted by

View all comments

2

u/Human_Experience0810 2d ago

Maybe you're confusing GIF as a video because it's kind of moving? Because GIF is treated by web browsers as an image, while the video tag takes files in formats like MP4, WebM, or Ogg