• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Images That Are Links

You can make any image into a clickable link to another page with the same <a href> tag used to make text links. Figures 10.1 and 10.2 show an example; clicking the big button at the bottom of the page (or the words Click here for more bargains!) retrieves the page named zolzol.htm.

Normally, Web browsers draw a colored rectangle around the edge of each image link. Like text links, the rectangle usually appears blue to people who haven't visited the link recently, and purple to people who have. Since you seldom, if ever, want this unsightly line around your beautiful buttons, you should always include border="0" in any <img /> tag within a link. (You learn more about the border attribute in Hour 13, "Page Design and Layout." )


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint