HTML Plug-ins

Plug-ins are known to be computer programs that are used for extending a web browser's standard functionality.

Plug-ins are known with another name called Helper applications.

Plug-ins are added to the web pages using the <object> tag or the <embed> tag. 

Plug-ins are used for many functions

  • display maps
  • scan for viruses
  • verify your bank id
  • run Java applets
  • display Flash movies
Note : Most browsers no longer support Java Applets and Plug-ins.

HTML <object> Element

All browsers will support the <object> element.

The <object> element is used to define an embedded object inside an HTML document.

It is utilised for embedding plug-ins (like Java applets, PDF readers, Flash Players) in various web pages.

Example : 

<object width="100%" height="500px" data="snippet.html"></object>

Example : 

<object data="code.jpeg"></object>

HTML <embed> Element

The <embed> element is supported by most of the browsers.

The <embed> element is also used to define an embedded object inside an HTML document.

Web browsers are supporting the <embed> element for a long time. But, it has not become a HTML specification's part before HTML5. The element will get validated in an HTML5 page, but does not get validated in an HTML 4 page.

Example :

<embed src="code.jpeg">