object – generic external content # T
The
object
element
represents external content.
Permitted contents #
Transparent,
with the following specific structure:
Additional constraints and admonitions #
-
The element object
with the attribute usemap must not
appear as a descendant of the a element.
-
The element object
with the attribute usemap must not
appear as a descendant of the button element.
-
The archive attribute on the object element is obsolete.
Use the data attribute and type attribute to invoke plugins.
To set a parameter with the name “archive”, use the param element.
-
The classid attribute on the object element is obsolete.
Use the data attribute and type attribute to invoke plugins.
To set a parameter with the name “classid”, use the param element.
-
The code attribute on the object element is obsolete.
Use the data attribute and type attribute to invoke plugins.
To set a parameter with the name “code”, use the param element.
-
The codebase attribute on the object element is obsolete.
Use the data attribute and type attribute to invoke plugins.
To set a parameter with the name “codebase”, use the param element.
-
The codetype attribute on the object element is obsolete.
Use the data attribute and type attribute to invoke plugins.
To set a parameter with the name “codetype”, use the param element.
-
The declare attribute on the object element is obsolete.
Repeat the object element completely each time the resource is to be reused.
-
The standby attribute on the object element is obsolete.
Optimize the linked resource so that it loads quickly or, at least, incrementally.
-
The align attribute on the object element is obsolete.
Use CSS instead.
-
The hspace attribute on the object element is obsolete.
Use CSS instead.
-
The vspace attribute on the object element is obsolete.
Use CSS instead.
-
The border attribute on the object element is obsolete.
Use CSS instead.
Permitted parent elements #
any element that can contain
phrasing elements, any element that can contain
flow elements
Details #
The
object
element
represents external content, which, depending on the type
of the content, will either be treated as an image, as a
nested browsing context, or as external content to be
processed by a plugin.
DOM interface #
interface HTMLObjectElement : HTMLElement {
attribute DOMString data;
attribute DOMString type;
attribute DOMString name;
attribute DOMString useMap;
readonly attribute HTMLFormElement form;
attribute DOMString width;
attribute DOMString height;
readonly attribute Document contentDocument;
readonly attribute WindowProxy contentWindow;
readonly attribute boolean willValidate;
readonly attribute ValidityState validity;
readonly attribute DOMString validationMessage;
boolean checkValidity();
void setCustomValidity(in DOMString error);
};