<object> element represents some resource external to the HTML document. This resource can be treated as an image, an embedded browsing context, or as content to be handled by a browser plugin.
<object type="MIME type" data="URL of resource"></object>
<object> element requires the following attributes to work properly:
typeattribute that tells the browser what content media (MIME) type will be displayed. (“application/pdf”, “application/x-java-applet”, “audio/mp4”, etc.)
dataattribute that contains the URL to the resource being used.
This element may contain zero or more
<param> elements to pass parameters on to the resource it is displaying:
<object type="MIME type" data="URL of resource"><param name="parameter name" value="parameter value" /></object>
Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.
Learn HTML on Codecademy
Front-End EngineerFront-end engineers work closely with designers to make websites beautiful, functional, and fast.
Includes 34 Courses
With Professional Certification