HTML image insert or add link syntax
Web page design will inevitably need to insert some pictures to beautify your page, or need to express the content you want to convey through pictures. You can add pictures to the web page through the HTML img tag and adjust the presentation style. Many presentation effects are in It can also be achieved in CSS.
Insert picture syntax
<img src="Image URL">
Picture plus link syntax
<a href="URL to link to"><img src="Image URL"></a>
Picture plus width and height restrictions
<a href="URL to link to"><img src="Image URL" width="200" height="100"></a>
In this example, we have added the specification settings of width 200 and height 100. In HTML, this is fine, but if you use CSS syntax, you must add width and height units to display smoothly!
Border processing after the picture is added to the link
<a href="URL to link to"><img src="Image URL" border="0"></a>
Because the picture has a border, IE will judge the effect of the link, so a strange border will appear, maybe that is not what you want, so in this example, we set the picture border="0", which means The border is zero, so that no border is displayed.
Post a Comment
0 Comments