HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML - Plug-ins


The purpose of a plug-in, is to extend the functionality of the HTML browser.


HTML Helpers (Plug-ins)

A helper application is a small computer program that extends the standard functionality of the browser. Helper applications are also called plug-ins.

Examples of well-known plug-ins are Java applets and Adobe Flash Player.

Plug-ins can be added to web pages with the <object> tag or the <embed> tag. 

Plug-ins can be used for many purposes: to display maps, scan for viruses, verify your bank id, and much more. The restrictions are few.


What is The Best Way to Play Audio or Video in HTML?

The best way to embed audio in a web page is to use the HTML5 <audio> element.

The best way to embed video in a web page is to use the HTML5 <video> element.


The <object> Element

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

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

It is used to to embed plug-ins (like Java applets, ActiveX, PDF, and Flash) in web pages.

It can also be used to embed another webpage, or web content like images, into HTML documents.

Note The text between <object> and </object> is displayed if the browser doesn't support the tag.

The HTML <param> tag is used to pass parameters to the plug in.

Example

<object width="400" height="50" data="bookmark.swf"></object>

Try it yourself »


The <embed> Element

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

The <embed> element defines a container for an external application or interactive content (a plug-in).

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

The <embed> element will validate in an HTML5 page, but not in an HTML 4 page.

Example

<embed width="400" height="50" src="bookmark.swf">

Try it yourself »

Note Note that the <embed> element does not have a closing tag. It can not contain alternative text.



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE