Jump to content

pixels? or something else


Toni
 Share

Recommended Posts

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...