Why is it important to specify width and height attribute in <img> tag? CBSE 2013 (a) To ensure that image is not copied (b) The image will not render without these (c) To stop the image from loading (d) Helps the browser to load the Web page faster
Adding the height and width attributes to your IMG SRC HTML tag allows the browser to know how much space to leave for an image. Without these values, the browser doesn't initially create a space for the image, which means elements surrounding the image are adjusted after it has loaded.