Home > Article > Web Front-end > How to hyperlink html images
How to add hyperlinks to html pictures: first find the link to add the picture in the source code; then add the picture to the hyperlink A tag; finally set the link address to be reached by clicking on the picture.
The operating environment of this article: Windows7 system, HTML5 version, DELL G3 computer
Find the link to add the picture in the source code, For example:
Add the image to the hyperlink A tag, for example:
Set the link address to reach when clicking on the image, for example: > ;
In this way, you can access the specified link by clicking on the image.
The complete code is as shown in the figure:
Recommended study: "HTML Video Tutorial"
The above is the detailed content of How to hyperlink html images. For more information, please follow other related articles on the PHP Chinese website!