HTML <object> Tag
<object type="video/quicktime" data="http://www.htmlcodes.ws/resources/sample.mov" width="350" height="95"></object> <p>Click and drag...</p>
The above example demonstrates usage of 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.
type attribute is included, it must contain a valid MIME type.
You can also use the (optional)
height attributes to specify the dimensions of the object.
Supported attributes are (as well as the global HTML attributes):
- Address of the resource
- Type of embedded resource
- Whether the
typeattribute and the
Content-Typevalue need to match for the resource to be used
- Name of nested browsing context
- Name of image map to use
- Associates the control with a
- Horizontal dimension
- Vertical dimension