Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Adding Images to Your Pages: Meeting ... > So, how do I make links out of image...

So, how do I make links out of images?

You’ve got your large photos, your smaller thumbnails, and even a set of HTML pages for displaying individual photos. Now you need to put it all together and get those thumbnails in “index.html” linked to the pages in the “html” folder. But how?

To link an image, you put the <img> element inside an <a> element, like this:

image with no caption

Once you’ve placed the <img> element into an <a> element, the browser treats the image as a clickable link. When you click the image, the browser will retrieve the page in the href.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint