Toni Posted April 11, 2010 Share Posted April 11, 2010 I'm new and have gone through the html tutorials and have been left with a question.Knowing the little things has always made it easier for me to understand better what I'm doing (plus I'm overly curious).I've searched and not found what these numbers really are. I think they must represent pixels. Is this correct? If not just what are they<img src="w3schools.jpg" width="104" height="142" />Thanks Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2010 Share Posted April 11, 2010 Yes. Pixels. The original purpose of those attributes (mid 1990s) was to create a "space" in the document where the image would be placed once it had been downloaded. This was to prevent the annoying "jump" that would otherwise take place when an image suddenly appeared and all the other elements had to be repositioned. Today the attributes are mostly used to resize images (for the sake of consistency, to create "thumbnails," etc.). Link to comment Share on other sites More sharing options...
Toni Posted April 11, 2010 Author Share Posted April 11, 2010 Thank you so much for your speedy answer. After I posted I realized that it might be one of those questions that everyone knows the answer to but me. The tutorials are good but they leave out explaining all the little things like pixels. Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2010 Share Posted April 11, 2010 Did you look at this page? http://www.w3schools.com/tags/tag_img.asp Link to comment Share on other sites More sharing options...
Toni Posted April 11, 2010 Author Share Posted April 11, 2010 Ah! I see it now. I missed when looking. It's an acquired ability that I have to be able to look directly at something and not see it. It usually happens while shopping. Thanks Link to comment Share on other sites More sharing options...
jeffman Posted April 11, 2010 Share Posted April 11, 2010 I find that price tags rewrite themselves between the shelf and the checkout line. Some new kind of ink. Must be. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.