3.7.1. Making an image or an icon as a link
In this age of graphical interfaces, people are used to clicking on images and icons to make things happen. Adding an image to a link allows users to click the image to access the required URL.
Example 3.3 Making image as a link
<HTML> <HEAD> <TITLE> HTML Page with image as a link </title> </HEAD> <BODY TEXT =”CYAN” ALINK = “RED” VLINK =”WHITE”> <CENTER> <H1>An Image as a hyper link </H1> <FONT SIZE =”10pt”> <b> Click here to go to The Next Page </FONT> <A HREF”demo2.html> <img src =”hand=sml.gif”> </A> <CEBTRE> <BODY> </HTML>
Tips:
Use small images to keep the page’s loading time to a minimum.
Use the width and height attribute for special effect and not to reduce the size of the image
Related Posts:
Sign-up for our email newsletter and get free job alerts, current affairs and GK updates regularly.
Subscribe Here (or)
Subscribe Here (or)
Comments RSS Feed
Leave a Reply