Name
object — HTML 4.01 | HTML5
Synopsis
<object> . . . </object>
A generic element used for embedding media (such as an image,
applet, movie, audio, or even another HTML file) on a web page. The
attributes required for the object
element vary with the type of content it is placing. The object
element may contain content that will
be rendered if the object cannot be embedded. The object
element may also contain a number of
param
elements that pass important
information to the object when it displays or plays. Not all objects
require additional parameters. The object
and param
elements work together to allow authors
to specify three types of information:
The implementation of the object—that is, the executable code that runs in order to render the object.
The data to be rendered. The
data
attribute specifies the location of the resource, in most cases an external file, such as a movie or a PDF file.Additional settings required by the object at runtime. Some embedded media objects require additional settings that get called into play when the object plays or is rendered.
Notes
The object
element began as a
proprietary element in Internet Explorer to support ActiveX and later
Java applets. Browser support for the object
element does not live up to the W3C’s
vision of object
as an all-purpose
object placer; for example, it is not currently possible to reliably
place images with the object
element.
Start/End Tags
Required/Required
Attributes
Core, Internationalization, Events, HTML5 Global Attributes ...
Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.