Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Why does youtube etc use <object> and not <iframe>?
<object>
<iframe>
What are the advantages of object over iframe for this case?
iframes are for embedding other HTML pages within a page.
iframe
objects are for embedding non-HTML content objects (like Flash) within a page.
object
Since YouTube is using Flash to play videos, it uses object.