files/en-us/web/html/reference/elements/object/index.md
The <object> HTML element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin.
{{InteractiveExample("HTML Demo: <object>", "tabbed-standard")}}
<object
type="video/mp4"
data="/shared-assets/videos/flower.mp4"
width="250"
height="200"></object>
This element includes the global attributes.
archive {{deprecated_inline}}
border {{deprecated_inline}}
classid {{deprecated_inline}}
codebase {{deprecated_inline}}
codetype {{deprecated_inline}}
data
declare {{deprecated_inline}}
<object> element. Repeat the <object> element completely each time the resource is reused.form
height
name
standby {{deprecated_inline}}
type
usemap {{deprecated_inline}}
name of a map element.width
<object
type="video/webm"
data="/shared-assets/videos/flower.webm"
width="600"
height="140">
</object>
{{EmbedLiveSample("Embed a video")}}
If the video in the example fails to load, the user will be provided with an image as fallback content. The {{HTMLElement("img")}} tag is used to display an image. We include the src attribute set to the path to the image we want to embed. We also include the alt attribute, which provides the image with an accessible name. If the image also fails to load, the content of the alt attribute will be displayed.
{{Specifications}}
{{Compat}}