[html5] embed vs. object

Simon Pieters zcorpan at gmail.com
Mon Sep 13 12:13:48 PDT 2010


On Sat, 11 Sep 2010 23:47:02 +0200, Chris Cressman  
<chris at chriscressman.com> wrote:

> On Sat, Sep 11, 2010 at 1:01 PM, Brenton Strine <whatwg at gmail.com> wrote:
>> 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?)
>
> Yes, one of HTML5's design principles is compatibility [1], so <embed>
> is now a valid choice for authors.
>
> [1] http://www.w3.org/TR/html-design-principles/#compatibility

...except that the traditional <embed>-in-<object> uses attributes that  
are obsolete in HTML5. Personally I would recommend to only use <embed> if  
you're fine without fallback, or only use <object> otherwise.  
(<embed>-in-<object> doesn't support fallback.)

-- 
Simon Pieters



More information about the Help mailing list