Horje
How to create Always Specify alt, width, and height for Images

Always specify the alt attribute for images. This attribute is important if the image for some reason cannot be displayed.

Also, always define the width and height of images. This reduces flickering, because the browser can reserve space for the image before loading.


Good:

 <img src="html5.gif" alt="HTML5" style="width:128px;height:128px"> 

Bad:

 <img src="html5.gif"> 





Category:
Web Tutorial
Sub Category:
HTML Style Guide
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference