Skip to content

HTML Plug-ins

Learn how HTML plug-ins like Java applets, Flash, and ActiveX controls extended browser functionality, and discover modern alternatives using the <object> and <embed> elements.

Plug-ins are computer programs that extend the standard functionality of the browser.

Plug-ins

Plug-ins were designed to be used for many 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
  • Etc.

The <object> Element

The <object> element 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 width="100%"  height="500px"  data="snippet.html"></object>

Or images if you like:

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

The <embed> Element

The <embed> element is supported in all major browsers.

The <embed> element also defines an embedded object within an HTML document.

Web browsers have supported the <embed> element for a long time. However, it has not been a part of the HTML specification before HTML5.

<embed src="audi.jpeg">

The <embed> element can also be used to include HTML in HTML:

<embed width="100%"  height="500px"  src="snippet.html">
Navigation