Share this Page URL

Chapter 9. Images Can Be Links, Too > Why should I use an image as a link? - Pg. 96

Images Can Be Links, Too 96 For example, it's often a good idea to include a link from all your other web pages back to your home page. This makes it easy for your readers to start over again. Here's a document (backhome.htm on this book's CD) that sets up an image of a house as the link back to the home page: <HTML> <HEAD> <TITLE>Images Can Be Links, Too</TITLE> </HEAD> <BODY> Click this house <A HREF="index.htm"><IMG SRC="house.gif"></A> to return to my home page. </BODY> </HTML> Figure 9.1 shows how it looks. Notice how the browser displays a border around the image to identify it as a link. Figure 9.1. An image masquerading as a link.