[html5] embed vs. object

Brenton Strine whatwg at gmail.com
Sat Sep 11 10:01:47 PDT 2010


Semantically, what is the difference between <embed> and <object> in
HTML5? The spec gives these different meanings:

> The object element can represent an external resource...

> The embed element represents an integration point for an external (typically non-HTML) application or interactive content.

...but it seems that in practice, they do the same thing. If I'm going
to be embedding a flash object, which one should I use? Or is the
point of this that I can now validly use the old style <embed> nested
in an <object>? (In other words, was <embed> included in HTML5 to save
us from having to use the Satay method?)

Brenton



More information about the Help mailing list