HTML object tag
HTML object tag represents embedded content such as images, video or audio. We have to provide the address or URL of the content in the data attribute.
<object data="files/demo.html" type="text/html" width="100%" height="auto">
</object>
</>
Tag Uses
Specific uses of <object> tagIt may also embed an image. It can also be used to make a map.
Tag omission
Both starting and ending tags are necessary for the object element.
Global Attributes
All the global attributes are applicable on the object element.
Next Previous
Was this article helpful?