Home>Article>Web Front-end> How to set a hyperlink on an image in HTML
How to set a hyperlink on an image in HTML: first add an image tag img in the html; then surround the image tag with the hyperlink a tag; finally add the href attribute to the hyperlink tag and specify the link The destination URL will do.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
It is also very simple to add a hyperlink to an image. We first add an image tag in the html, img
and then use the hyperlink a tag to add the image to the image. Surround the tag
#Then add the href attribute to the hyperlink tag and specify the target URL of the link
Recommended Learn:html video tutorial
The above is the detailed content of How to set a hyperlink on an image in HTML. For more information, please follow other related articles on the PHP Chinese website!