Explain why it is a good idea to use the background color, even if you have a background image.

What will be an ideal response?


It is a good coding practice to always use the background-color property when you use the background-image property, in case the background image is not large enough to cover the entire Web browser window. Select a background color that contrasts with the font color so the font is readable. That way, if the background image is not displayed, the text is still readable. When some browsers have problems displaying an image element, they show a placeholder icon instead of the image to alert you to the problem. However, if the background-image code contains an error, an image placeholder icon is not displayed. If you specify a background color for an element, the element's contents still appear against the background color even if there is an error in the image code. Also, specifying a background-color property overrides any default setting in the browser for background color, which usually is white. You should always set a background color, even if it is white. If you are using a background image for the body element, make sure your body text has a contrasting color, not a similar color.

Computer Science & Information Technology

You might also like to view...

When selecting nonadjacent cells using the mouse, press and hold Ctrl as you click to select additional cells.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

View modeling includes

A. constructing a data model showing entity associations. B. constructing the physical database. C. preparing the user views. D. all of the above.

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. If, in a class, one uses the keyword public:, it affects only the member that immediately follows the keyword public, making this member accessible to any other function defined anywhere. 2. There is no access to private members of a class by any function defined outside the class. 3. A data type is a collection of a set of values together with a set of basic operations defined on the values. 4. An abstract data type is a collection of a set of values together with a set of basic operations defined on the values.

Computer Science & Information Technology

Gary and Lloyd created a system mockup that did not fully run. This was a(n) ____.

a. end-user development b. partial prototype c. nonoperational prototype d. operational prototype

Computer Science & Information Technology