HTML - More on Inserting Components

Hyperlinking Images

You can even chose to hyperlink an image. To do that, first define the hyperlink tag. Then insert the image and then close the hyperlink tag. An example is shown below:

<A HREF="CATALOG.HTM"> <IMG SRC="FLOWER.GIF"></A>

In the above example first the hyperlink has been defiend. Then an image called FLOWER.GIF has been inserted with the help of IMG SRC tag. Then the huperlink has been closed. This makes the image a clickable hyperlink.

Mailto Hyperlink

You may have noticed in most websites that there is a link called "Contact us" or "Send us a mail" etc, which allows the user to send an email to that website. You too can create such hyperlinks. It is called the mailto hyperlink. To create a mailto hyperlink you can use the A HREF tag in the following method:

<A HREF=mailto:xyz@abc.com> CLICK HERE TO SEND US AN EMAIL </A>

This defines a mailto hyperlink and when this is clicked by the user, the default mail program in his computer is activated and a message window appears with the specified mail address automatically in the To box. The user can type a message and click the Send button to send it.

Inserting Audio

You can insert audio into your webpage so that everytime the page is acessed and displayed on the screen, the audio clip would play in a continous loop. To dothat we must use the bgsound tag.

<BGSOUND="path of the audio file">

A sound file is stored in a WAV format ir a MID format. Ensure the proper extension name and include it in the path. An example is shown below:

<BGSOUND ="C:\WINDOWS\CHIMES.WAV">

Everytime the page is accessed, this sound will play in the background.

Inserting video

Just as you would insert audio, you can also insert a video clip as an inline movie in your webpage. We must use the IMG DYNSRC tag to do that.

<IMG DYNSRC="path of the video file">

A video file is stored in AVI format or in the MOV format. You must include this extension name also in the path.

HOME INDEX PREVIOUS NEXT