"."/> ".">

Home >Web Front-end >HTML Tutorial >How to click on an image to jump to the page in html

How to click on an image to jump to the page in html

青灯夜游
青灯夜游Original
2021-05-06 15:44:1669879browse

htmlHow to click on the picture to jump to the page: first use the img tag to insert the picture, and then wrap the a tag around the img tag so that the img tag has a hyperlink; the specific syntax is "How to click on an image to jump to the page in html".

How to click on an image to jump to the page in html

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

htmlClick on the picture to jump to the page

<a href="//m.sbmmt.com/"> 
<img  src="img/1.jpg"    style="max-width:90%"  style="max-width:90%" / alt="How to click on an image to jump to the page in html" >
</a>

Rendering:

How to click on an image to jump to the page in htmlDescription:

in one Adding an How to click on an image to jump to the page in html tag content to the tag will give the How to click on an image to jump to the page in html a hyperlink. Then you can continue to write text later, and this text will be displayed as a hyperlink. Click the text to enter the hyperlink.

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to click on an image to jump to the page in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn