HTML - Plugins

HTML Plugins

Plugins are programs that extends the normal functionality of the browser. In this tutorial, under this topic we will be looking at embedded multimedia.
I will be showing you an alternative way of adding videos, audios and other external contents on your HTML web page.

<embed> Element

This element is used to embed external contents such as images, videos, audio and many other files.

  • The <embed> defines the embed element
  • The major attribute is the: src - which specifies the URL (address/location) of the embedded external content.
note
NOTE:

The <embed> does not have a closing tag. It's a self closing tag element.



<embed> Attributes

ATTRIBUTES DESCRIPTION
width

Used to set the width of the embedded file.

height

Used to set the height of the embedded file.

title

Used to add title that displays when you place your mouse over the embedded file.

src

Used to specify the URL (address/location) of the embedded file.

type

Used to specify type of file that is embedded.


tips
TIP:

An embedded object is an object which is created separately and then placed into another object or program.


<object> Element

This element is used to embed various types of external resources such as images, videos, html files, etc.

  • The <object> defines the object element
  • The major attribute is the: data - which specifies the URL (address/location) of the resource.

<object> Attributes

ATTRIBUTES DESCRIPTION
data

Used to specify the URL (address/location) of the resource.

type

Used to specify the type of the embedded resource.

height

Used to set the height of the embedded resource.

width

Used to set the width of the embedded resource.

name

Used to set a unique name for the object.

usemap

Used to specify a URL of an image map to be used with the object.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT