Plug-ins are computer programs that extend the standard functionality of the browser.
Plug-ins were designed to be used for many different purposes: .To run Java applets .To run Microsoft ActiveX controls .To display Flash movies .To display maps To scan for viruses .To verify a bank id
The <object>ment is supported by all browsers. The <object> element defines an embedded object within an HTML document. It was designed to embed plug-ins (like Java applets, PDF readers, and Flash Players) in web pages, but can also be used to include HTML in HTML:
<object>, embeds an image using <embed> with custom dimensions, and understands the core purpose of browser plug-ins.data attribute for <object> and the src attribute for <embed>, along with width and height attributes.
<!DOCTYPE html> <html> <head> <title>HTML Plug-ins & Embedding Practice</title> </head> <body> <h3>1. Embedded HTML Document using <object></h3> <object data="snippet.html" width="100%" height="200px"></object> <h3>2. Embedded Image Content using <embed></h3> <embed src="car1.png" width="40%" height="auto"> </body> </html>
This is snippet.html page
<object> Element: Container designed to hold external media, plug-ins, or HTML documents. It uses the data attribute to link the external file.<embed> Element: A self-closing HTML tag used as an integration container for external resources (HTML files, images, interactive plug-ins) using the src attribute.