What Happens If a Hyper Link Points to an Image

Q

What Happens If a Hyper Link Points to an Image? - XHTML 1.0 Tutorials - Understanding Hyper Links and URLs

✍: FYIcenter.com

A

If you want to build a hyper link to allow visitors to see an image by clicking a hyper link, you can put the URL of the image directly in the "href" attribute of the hyper link. If a visitor clicks the link, the browser will fetch and display the image.

The tutorial example below shows you how image files can be linked by hyper links:

  <p>Click the hyper link to see the 
  <a href="http://www.ihrcanada.com/graphics/scenary.gif"
   >Scenary Image</a> provided by www.ihrcanada.com.</p>

The above code is included below in this document, so you can try it now.

Click the hyper link to see the Scenary Image provided by www.ihrcanada.com.

2007-05-12, 4704👍, 0💬