Ben
Ben

Reputation: 25807

Why does youtube etc use <object> and not <iframe>?

Why does youtube etc use <object> and not <iframe>?

What are the advantages of object over iframe for this case?

Upvotes: 2

Views: 973

Answers (1)

Amber
Amber

Reputation: 526743

  • iframes are for embedding other HTML pages within a page.

  • objects are for embedding non-HTML content objects (like Flash) within a page.

Since YouTube is using Flash to play videos, it uses object.

Upvotes: 13

Related Questions