<img> image tag can be closed either by a closing tag similar to opening tag like this </img>, this one should be put at end like
<img> ...</img> or the end tag could also be '/>' like this <img />, in the second end tag described you don't have to use the letters 'img'.
When using image tag - <img> you provide source [the abbreviation 'src' in the code], height and width ( height and width if you want other wise, default settings will allow actual size of the image to be used.
See this image tag:
<img src="http://i450.photobucket.com/albums/qq229/blakewotton/photography.jpg" />
You can use 'alt' tag inside img tag which helps the Screen Readers - softwares that read texts on your computer screen (and maybe you yourself when you have images disabled to see text behind the images. Why will you display images, one reason is to speed up your webpage, second reason is when you are making a site you need to keep in mind that everyone will be visiting your site therefore the more user friendly the site is the more accessible to a large community).
'Width' and 'Height' shows pixels, mean to say when you write in image tag width="90" or something you mean 90 pixels. Pixels are smalls dots on your screen which your screen is made out.
Tip: The tip to note here is that, keep height and width equal if you are not sure what to do especially for small size images. For large images just take into consideration whether you are changing faces or buildings.
Need more info or want to try more: W3Schools.com will help - IDK:
http://www.w3schools.com/html/html_images.asp
No comments:
Post a Comment