Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Some examples of the
examples height img Tags values
0
Posted

Some examples of the

0

Generally, my advice is to leave them off. If they are not calculated accurately they’ll distort a jpg or png image. It’s best to use your graphics editing program to make the image exactly the size needed. It is _not_ appropriate for this class to take a huge image and down-size it in the html document. The appropriate thing is to save the graphic element in the final size & quality and put that file in your web folder. In most situations, if the image heights & widths are given the browser can display the page a bit quicker, using these bits of data to set aside space on the page required for the image without waiting to get the image and figure it out. If this behavior is desirable, make sure to make the height & width identical to the png or jpg that’s going to fit the space. gifs can’t be ‘dynamically resized’ by the way…

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123