In an earlier unit, we showed you how all HTML elements have boxes around them. Images are no exception. Because images are also contained within boxes, they can also be modified using some of the properties that we used earlier to modify boxes.
For example, we can modify the dimensions of an image using the
<img src="#" alt="" class="" />
It's important to specify the width and height for an image on your web page, as this helps the browser know exactly how much space should be reserved for the image, rather than having to download an entire image for the user.
Ideally, however, images should be saved at the dimensions that they will be displayed. For example, rather than specify a height and a width for an image using CSS, that....