HTML <object> Tag
<object type="video/quicktime" data="/resources/sample.mov" width="350" height="95"></object>
<p>Click and drag...</p>
The above example demonstrates usage of the <object>
element.
The <object>
element is used to embed an external resource into the page. This external resource, depending on its type, will be treated as either, an image, a nested browsing context, or as an external resource to be processed by a plugin.
If the type
attribute is included, it must contain a valid MIME type.
You can also use the (optional) width
and height
attributes to specify the dimensions of the object.
Attributes
Supported attributes are (as well as the global HTML attributes):
data
- Address of the resource
type
- Type of embedded resource
typemustmatch
- Whether the
type
attribute and theContent-Type
value need to match for the resource to be used name
- Name of nested browsing context
usemap
- Name of image map to use
form
- Associates the control with a
form
element width
- Horizontal dimension
height
- Vertical dimension