Basics of Web Design: HTML5 & CSS3 (3rd Edition)
Basics of Web Design: HTML5 & CSS3 (3rd Edition)
3rd Edition
ISBN: 9780133970746
Author: Terry Felke-Morris, Terry Morris
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 4, Problem 1RQ
Program Description Answer

The “background-color” is a Cascading Style Sheet (CSS) property, which is used to set the background color of a web page.

Hence, the correct answer is option “D”.

Expert Solution & Answer
Check Mark

Explanation of Solution

Cascading Style Sheets (CSS):

Cascading Style Sheet is a computer language that is used to present the document written in a mark-up language like HTML, MXML, and AIML.

Background Color:

  • • The background-color describes the background color of an element.
  • • With CSS, a color is often specified as a valid color name, a RGB value or a hex value.

Example Program:

<html>

<head>

<style>

body

{

    background-color: lightgreen;

}

</style>

</head>

<body>

<h1>Hello World!</h1>

<p>This page has a light green background color!</p>

</body>

</html>

Output:

Basics of Web Design: HTML5 & CSS3 (3rd Edition), Chapter 4, Problem 1RQ

In the above HTML code, the background color is assigned within the body section of the code.

  • • The “background-color” is set as light green.
  • • The sample heading of the webpage is given as “Hello World” and the paragraph is written as “This page has a light green background color”.

Explanation for incorrect options:

bgcolor:

The attribute “bgcolor” is used to set the background color for HTML elements.

Hence, the option “A” is wrong.

color:

The property “color” is used to specify the color of a text.

Hence, the option “B” is wrong.

bcolor:

There is no property named “bcolor.

Hence, the option “C” is wrong.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
How can you apply it to translate property in CSS on an image when the user hovers it with the mouse pointer it translates an image? Provide CSS code and a screenshot of the output image.
By using the program below: Kindly use CSS, Set the text color for the page to "red", and the text color for <h1> to "blue". <!DOCTYPE html> <html> <head> <style> </style> </head> <body>   <h1>This is a Heading</h1> <p>This is a paragraph.</p> <p>This is another paragraph.</p>   </body> </html>
Please help me with this. I am not understanding what to do. So the code below is supposed to display images when  the checkboxed are clicked and display nothing when they are unclicked,. Dont worry about the css code JS function p01Func() {  document.getElementById("description").innerHTML = "<p>A mother joins an underground band of vigilantes to try to rescue her daughter from a state-run institution.</p>";   document.getElementById("poster").src = "images/night_raiders_poster.jpg";   document.getElementById("poster").style.display = "block";   document.getElementById("director").src = "images/night_raiders_director.jpg";   document.getElementById("director").style.display = "none";   document.getElementById("actors").src = "images/night_raiders_actors.jpg";   document.getElementById("actors").style.display = "none";   document.getElementById("check1").checked = false;  document.getElementById("check2").checked = false;  document.getElementById("check3").checked = false;}…
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT