Plug-ins were created with diverse uses in mind:
Important note:
|
The <object>
element is universally supported by all browsers.
It defines an embedded object within an HTML document and was originally intended for embedding plug-ins such as Java applets, PDF readers, and Flash Players into web pages. It can also be used to include HTML content within HTML.
<object width=”100%” height=”500px” data=”snippet.html”></object> |
Or, if preferred, it can also be used for embedding images.
<object data=”audi.jpeg”></object> |
The <embed> element is widely supported in all major browsers.
It defines an embedded object within an HTML document.
While web browsers have supported the <embed> element for a significant period, it was not formally included in the HTML specification until HTML5.
<embed src=”audi.jpeg”> |
Note that the <embed> element does not require a closing tag and cannot contain alternative text. |
The <embed> element can also be utilized to embed HTML content within HTML documents.
<embed width=”100%” height=”500px” src=”snippet.html”> |