Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML Plugins

HTML Plugins


The function of a plug-in is to extend the capabilities of an HTML browser.


HTML Helpers (Plug-ins)

A helper application is a program that can be launched by a browser. Helper applications are also called plug-ins.

Helper applications can be used to play audio and video (among others). Helper applications are loaded using tags.

One advantage of using helper applications to play video and audio is that you can allow users to control some or all of the playback settings.

A plugin can use tags or tags. 

Most helper applications allow manual (or programmatic) control over volume settings and playback functions (such as rewind, pause, stop, and play).

Note:

Most browsers no longer support Java applets and plug-ins.

Most modern browsers have turned off support for Flash.

The following swf file example will not run properly in modern browsers.

Note We can use the

Element

All major browsers support tag.

The element defines an embedded object in an HTML document.

This tag is used to insert objects (such as embedding Java applets, PDF readers, or Flash players in a web page).

Example

<

object

width=

"400"

height=

"50"

data=

"bookmark.swf"

<

/object

Try it »

The element can also be used to include HTML files:

Example

<

object

width=

"100%"

height=

"500px"

data=

"snippet.html"

<

/object

Try it »

Or insert an image:

Example

<

object

data=

"audi.jpeg"

<

/object

Try it »


Element

All major browsers support .

The element represents an HTML Embed object.

The element has been around for a long time, but was not specified in detail before HTML5. This element will be validated on HTML 5 pages, but not on HTML 4.

Example

<

embed

width=

"400"

height=

"50"

src=

"bookmark.swf"

Try it »

Note Note The element has no closing tag. Alternative text cannot be used.

The element can also be used to include HTML files:

Example

<

embed

width=

"100%"

height=

"500px"

src=

"snippet.html"

Try it »

Or insert an image:

Example

<

embed

src=

"audi.jpeg"

Try it »