- Element of
- What does
<object> HTML Tagdo?
- The <object> element is used to embed an object in an HTML document. It is commonly used to embed webpage elements such as Flash and Java items that are handled by browser plugins.
When to Use the Object Element
object element to pull in external multimedia content.
In most cases,
object is used to embed content that is supported by browser plugins. In theory, it can be used to display images, but the
<img> element is more suitable for this purpose.
<object data="flashmovie.swf" width="600" height="800" type="application/x-shockwave-flash"> Please install the Shockwave plugin to watch this movie. </object>
Note that the
type attribute tells the browser which plugin to load to display the content, but you only need to specify either
data – not necessarily both. Any text that you include between the
</object> tags will be displayed if the plugin is not available.
Browser Support for object