Image link
A link doesn't have to be text. It also could be an image and open the picture in a popup window or a new tab.
To insert the image as a link, you'll need the <img>
tag that contains several attributes:
• src
identifies the image location and tells the browser the file address
• height
and width
refer to image measurements
• alt
provides alternative text that helps users of assistive technologies receive information about the page without actually seeing it
All you need is to place the <img>
tag inside the <a>
element. Don't bother to close it — the <img>
tag is an empty one.