Jump to content

Html Measurement>> [Solved]


Drycodez

Recommended Posts

The width and height attributes aren't deprecated. They have one purpose. It's not a practise I follow, but it might be actually a good idea to do it. When a large image is loaded and the browser doesn't know its actual size, the browser will use the width and height attributes to reserve space on the page for the image. This is good for people with slow internet connections. The problem with trying to do this with CSS is that you need a new rule for each image and you have to wait for the stylesheet to load before the image's size is determined.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...