<object>: The HTML Object Element
1 Description
The HTML <object>
element is used to embed an external resource (like a video)
into a webpage. The optional <img>
element will be displayed if the video fails to
load.
See Also
The <video>
element
2 Examples
<!DOCTYPE html>
<html>
<head>
<title>Object Example Page</title>
</head>
<body>
<h1>A Video of A Zebra</h1>
<object type="video/mp4" data="/assets/video/zebra.mp4" height="400" width="500">
<img src="/assets/image/zebra.jpg" alt="A Video of a Zebra"/>
</object>
</body>
</html>
This document was last updated: