English

Why is it important to specify an image width and height in an tag?

Advertisements
Advertisements

Question

Why is it important to specify an image width and height in an tag?

Options

  • It ensures that a user will not be able to copy the image to their computer.

  • The image will not render if these attributes are left out.

  • These attributes constrain the image's proportions.

  • Specifying these dimensions helps a browser render pages faster.

MCQ
Advertisements

Solution

Specifying these dimensions helps a browser render pages faster.

Explanation:

When width and height are specified, the browser knows how much space to reserve for the image. This helps the page to be displayed more quickly and smoothly.

shaalaa.com
  Is there an error in this question or solution?
Chapter 4: HTML- II: Images, Links and Tables - Assisted Practice [Page 175]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 4 HTML- II: Images, Links and Tables
Assisted Practice | Q 28. | Page 175
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×