The <object>
represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
Content categories |
Flow content; phrasing content; embedded content, palpable content; if the element has a usemap attribute, interactive content; listed, submittable form-associated element. |
---|---|
Permitted content | zero or more <param> elements, then transparent. |
Tag omission | None, both the starting and ending tag are mandatory. |
Permitted parents | Any element that accepts embedded content. |
Permitted ARIA roles |
application , document , image
|
DOM interface | HTMLObjectElement |
This element includes the global attributes.
archive
HTML 4 only; Obsolete since HTML5
border
Deprecated since HTML4.01; Obsolete since HTML5
classid
HTML 4 only; Obsolete since HTML5
codebase
HTML 4 only; Obsolete since HTML5
codetype
HTML 4 only; Obsolete since HTML5
data
declare
HTML 4 only; Obsolete since HTML5
<object>
element. In HTML5, repeat the <object> element completely each that that the resource is reused.form
HTML5
<form>
element in the same document.height
name
standby
HTML 4 only; Obsolete since HTML5
tabindex
HTML 4 only; Obsolete since HTML5
type
typemustmatch
HTML5
usemap
<map>
element; that is a '#' followed by the value of a name
of a map element.width
<!-- Embed a flash movie --> <object data="movie.swf" type="application/x-shockwave-flash"></object> <!-- Embed a flash movie with parameters --> <object data="movie.swf" type="application/x-shockwave-flash"> <param name="foo" value="bar"> </object>
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<object>' in that specification. | Living Standard | |
HTML5 The definition of '<object>' in that specification. | Recommendation | |
HTML 4.01 Specification The definition of '<object>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | Yes | Yes | 1 | Yes | Yes | Yes |
archive |
Yes | Yes | 1 | Yes | Yes | Yes |
border |
Yes | Yes | 1 | Yes | Yes | Yes |
classid |
Yes | Yes | 1 | Yes | Yes | Yes |
codebase |
Yes | Yes | 1 | Yes | Yes | Yes |
codetype |
Yes | Yes | 1 | Yes | Yes | Yes |
data |
Yes | Yes | 1 | Yes | Yes | Yes |
declare |
Yes | Yes | 1 | Yes | Yes | Yes |
form |
Yes | Yes | 1 | Yes | Yes | Yes |
height |
Yes | Yes | 1 | Yes | Yes | Yes |
name |
Yes | Yes | 1 | Yes | Yes | Yes |
standby |
Yes | Yes | 1 | Yes | Yes | Yes |
tabindex |
Yes | Yes | 1 | Yes | Yes | Yes |
type |
Yes | Yes | 1 | Yes | Yes | Yes |
typemustmatch |
? | No | 27 | ? | ? | ? |
usemap |
Yes | Yes | 1 | Yes | Yes | Yes |
width |
Yes | Yes | 1 | Yes | Yes | Yes |
Feature | Android webview | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic support | Yes | Yes | Yes | 4 | Yes | Yes | Yes |
archive |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
border |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
classid |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
codebase |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
codetype |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
data |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
declare |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
form |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
height |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
name |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
standby |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
tabindex |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
type |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
typemustmatch |
? | ? | No | 27 | ? | ? | ? |
usemap |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
width |
Yes | Yes | Yes | 4 | Yes | Yes | Yes |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object