An image can also be used as a hyperlink to another document.
Type the following code and save the file with name 'image.html':
|
<HTML> <HEAD> <TITLE>ADDING IMAGE LINK </TITLE> </HEAD> <BODY> <IMG Src="C:/Users/PC/Pictutes/Types of Computer.jpg"> </BODY> </HTML> |
Now type the following HTML code and define the link for 'image.html' file:
|
<HTML> <HEAD> <TITLE>image link </TITLE> </HEAD> <BODY> <A Href="image.html"> <IMG Src="C:/Users/PC/Pictutes/Types of Computer.jpg"> </A> </BODY> </HTML> |
Observe, when you will click on the image 'Type of Computer', it will take you to the file 'image.html' which it is linked to.
Until now, we have discussed various tags, which help us in enhancing the appearance of our web page. In this section, we will discuss the tags, which we will be able to incorporate multimedia on our webpage and make it alive. Multimedia refers to 'Multiple Mediums'-the ability to add bits of sound and pictures to the web page.
Sometimes, you need to add music or video into your web page. Both audio and video can be embedded using the plug-in. A plug-in is a computer program that extends the standard functionality of the browser. You can insert an Audio clip/file of any format like .mp3,.ogg,.wav, etc., on your web page by linking to an audio file with the help of </A> tag.
learning with computers withKips