HTML Tutorial 9
Prepared by: Anthony Larrain
Making an Image Into a Hyperlink
To make an image into a hyper link, simply nest the <img>
tag inside the anchor tag <a>
.
Example 1
Browser Display
- Notice the border placed around the image.
- To remove or control the width of the border use the
border
attribute. - The values to the border attribute can be specified in pixels or percents.
Example 2
Browser Display
Design tip
Use CSS to style the border.
When using a 0 length in CSS the unit is not required.