[whatwg] Which differences between <embed> and <object>
Tab Atkins Jr.
jackalmage at gmail.com
Sat Aug 28 15:01:54 PDT 2010
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.
More information about the whatwg