Category: HTML

You can use images as links to other pages. Image links can replace a long text so that you get valuable space for other page elements. To add an image as a link just add the anchor tags <A> before the <IMG> tag and at the end add the closing anchor </A> tag.

 

Now include the destination file name to the opening anchor tag by adding “href” attribute you must include the alternative text because if the image is not displayed, your visitor won't be able to connect to the linked page. By default navigator and Internet Explorer place a blue border around image links to show that clicking the image would take you to a URL, just as with a text link.

 

The blue border placed by Navigator and Internet Explorer is normally two pixels wide.

The following lines of code will make the image as an link to file named “aircraft.jpg" which contains the large size of the image.

 

<HTML>

<HEAD>

<TITLE>BASIC IMAGE TAGS</TITLE>

</HEAD>

<BODY>

<P>The Convair 580 in Quebec city after the October 2001 Tropical Storm Karen research f

flight<BR><BR>

<A HREF="D:\aircraft.pg">

<IMG SRC:"D:\AIRCRAFT _files\indeJC8.Jiles\aircrafi-small.jpg " BORDER="10" >

</A>

</BODY>

</HTML>



Dinesh ThakurDinesh Thakur is a Columinist and designer with strong passion and founder of Computer Notes. if you have any ideas or any request please get @me on Google+
linkedin FaceBook Twitter Google Plus