Why does youtube etc use <object>
and not <iframe>
?
What are the advantages of object over iframe for this case?
Why does youtube etc use <object>
and not <iframe>
?
What are the advantages of object over iframe for this case?
iframe
s are for embedding other HTML pages within a page.
object
s are for embedding non-HTML content objects (like Flash) within a page.
Since YouTube is using Flash to play videos, it uses object
.