English

Why should you specify a background color if you are using an image for the actual background of your page?

Advertisements
Advertisements

Question

Why should you specify a background color if you are using an image for the actual background of your page?

Options

  • The background color will be shown until the image loads.

  • In case the image doesn't fit right.

  • So the text shows up better.

MCQ
Advertisements

Solution

The background color will be shown until the image loads

Explanation:

Web browsers display the specified background color as a fallback while the background image file is downloading or in case the image fails to load, ensuring that text remains legible and styled in the interim.

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: HTML- I: Basic HTML Elements - Assisted Practice [Page 121]

APPEARS IN

Sumita Arora Computer Applications [English] Class 10
Chapter 3 HTML- I: Basic HTML Elements
Assisted Practice | Q 29. | Page 121
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×