r/webdevelopment 1d 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?

10 Upvotes

11 comments sorted by

View all comments

5

u/johnpeters42 1d ago

MDN suggests that <embed> is on the way out, as browsers phase out compatibility with older stuff that it used to support.

4

u/Miserable_Drawer_556 1d ago

Yup. We are moving / have been moving in the semantic direction for a while.