Sign up for newsletters or to my RSS feeds to receive updates automatically blog!

Accelerate the performance of your site with the use of tags height and width



In the creation of an HTML page is an important aspect which often do not consider that we tend to ignore. It is the use of tags height and width that should always be specified in case you want to see an image.
If your browser is not informed of the size of the load then proceeds from the first uploading the image to calculate the size and only then continues with loading the rest of the page. If the tags on the size is specified, then the browser can immediately devote the necessary space on the page and continues much faster (and especially simultaneously) in the display of other elements. This is how they should be written tags IMG:

  <img id="myimage" height="250" width="450" src="http://www.sito.it/myimage.png" alt="La my immagine" /> 

Finally I would remind you that not be underestimated that there is also a gain in terms of usability: a visitor appreciates the fact they can start to read the text even before it is completed the loading of images.

Subscribe my RSS feeds Did you like this article? Subscribe now RSS feeds!



Still no comment '

RSS feed of the comments of this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Valid XHTML and CSS. ^ Top


Close
Send e-mail