W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Which differences between <embed> and <object>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 28 Aug 2010 15:01:54 -0700
Message-ID: <AANLkTi=2S4ZH-irtSn-x8ZFCTUy9dKSNHE7PASLp_OPy@mail.gmail.com>
On Sat, Aug 28, 2010 at 8:16 AM, zhao Matt <mattzhaoweb at gmail.com> wrote:
> According to HTML5 spec, the <embed> tag can play a swf file, however,? the
> <object> tag can also play a swf file (though <object is defined in HTML4>).
> I don't understand why need the <embed> tag , because the <object> tag can
> support(or? embed) many objects such as images, audio, videos, Java applets,
> ActiveX, PDF, and Flash.

The <embed> element isn't really meant for use by authors going
forward.  However, it has become a part of the web platform in
practice, and a lot of pages use it.  Thus, HTML5 defines how to
handle the element.

~TJ
Received on Saturday, 28 August 2010 15:01:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:00 UTC