Linking the Imagecode with the anchor element and the reference to where the image is linking, just as if it were the text content (see Example 3-3). Example 3-3. Linking the image<a href="detail.html"> <img src="/images/010/photo.jpg" width="250" height="188" alt="photograph of a delicious The image is now linked, and when clicked on, it will take the visitor to the detail.html page. You can even add a title and the hand cursor appears upon mouseover, too (see Figure 3-6). Figure 3-6. A linked image.
you can do so by turning it off directly in the HTML, as shown in Example 3-4. Example 3-4. Using the border attribute<a href="detail.html"> <img src="/images/010/photo.jpg" width="250" height="188" alt="photograph of a delicious The image, while still linked, now displays no border (see Figure 3-7). Figure 3-7. The image, while still linked, has no visible border.
|
| |||||||||||||||||||