Reputation: 1
We can embed video on our webpage using <video>
and <iframe>
tags. When is one expected to use either of them?
Upvotes: 0
Views: 431
Reputation: 15559
The tag specifies an inline frame.
An inline frame is used to embed another document within the current HTML document.
You don't use an iframe, to display your own video, but to display a video (or document) hosted on an external website.
Use video if you want to display (embed) the video in your own website.
Upvotes: 1