The img tag is used to put an image in an HTML document and it looks like this:
- <img src="http://www.htmldog.com/images/logo.gif" width="157" height="70" alt="HTML Dog logo" />
The width and height attributes are necessary because if they are excluded, the browser tend to underestimate the size of the image is loaded, instead of when the page loads, which means that the design of the document can jump while the page is charging.
The alt attribute is the alternative description. This is used for people who can not or choose not to view images. This is a requirement in the latest versions of HTML.
0 comments:
Post a Comment