img href image link

 You can use the < img > tag to insert pictures in HTML design webpages , and simply inserting pictures may not meet certain functions. This article will teach you to add link syntax to pictures through the href function of HTML <a> tags. The simple concept is HTML link syntax is combined with image syntax. HTML img href image link example


<a href="The destination URL to go to"><img src="Image URL" border="0"></a>


In the example, the HTML link tag <a href="the link URL to go to"></a> is used to wrap the image tag <img src="picture URL" border="0">, which means to tell the browser to A picture needs to be a linkable picture. For a further understanding of the usage of the img > tag, please refer to this article: HTML img Picture Tag .

In addition, the grammar of border=0 is used in the <img> tag, which means that the border of the picture is set to zero. The main reason for adding this grammar is that the IE browser will automatically add a border to the linked picture, but that is not necessarily the case. The result that the designer wants to present, set the border to zero, the dark blue hyperlink border will not appear in any browser.

Post a Comment

0 Comments