PrinceCEE
PrinceCEE

Reputation: 1

When to use any of <video> and <iframe> to embed video

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

Answers (1)

Hooman Bahreini
Hooman Bahreini

Reputation: 15559

iframe

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

Related Questions