Menu
I have read before that it is best to explicitly state the size of an image used in a page using the height and width attributes in order to have it render the fastest. My question is whether or not it is better, worse, or makes no difference if you put the height/width in a CSS stylesheet vs. having the attributes inline in the img tag.
[code=php]
<img src=”myImg.jpg” height=”10″ width=”10″>
versus
[code=php]
.myImg {
width: 10px;
height: 10px;
}
<img src=”myImg.jpg” class=”myImg”>