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”.
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:
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?
Chapter 4 Solutions
Basics of Web Design: HTML5 & CSS3 (3rd Edition)
- 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.arrow_forwardWhich of the following properties cannot be changed within a column group? a. font-size b. border C. width d. backgroundarrow_forwardThe Document Object Model methods cannot be used to affect CSS style properties. a. T b. Farrow_forward
- Please create the following screen attached using Java GUI (JavaFX): In your code you can add any background of your choosing, but the message and the Cave 1, 2, 3, 4, 5 buttons should look the same. The font is in Arial w/ Choose the Cave being size 36, bolded and white and Cave 1, 2, 3,4,5 are buttons of size 27,bolded and white. Also "Choose a Cave" should appear with a typewriter effect , w/ the same background image. Cave 1, 2, 3, 4, 5, are buttons.arrow_forwardHTML/CSS: How to make a sidebar on the left that has two buttons which are the draw mode and the proof mode? Make sure to use HTML and CSS only and show the screenshots of the full code and output.arrow_forwardWhich of the following CSS properties could an object use to override alignment from its parent? A) align-content B) align-self C) justify-content D) text-alignarrow_forward
- The correct units conversion for measurement in CSS isarrow_forwardYou can use display: none; to hide elements in CSS True or False pick the correct answer ??arrow_forwardCSS external style sheet code: Using the class that you put in the first and last div (class"turn") in a pseudo class with hover to turn those divs upside down when the mouse is over it. Remember that there can be no spaces in classname:hover. What code would I need to turn items in a pseudo class div upside down in a CSS external style sheet?arrow_forward
- Write a CSS rule that makes all the text 3 times larger than the base font of the system and colors the text as green and place a background image. The background image should remain in place when the user scrolls up or down.arrow_forwardIn CSS to set a style that will be applied on multiple elements, then you would use Select one: a. selector b. id с. name d. classarrow_forwarda.menu {font-family : Verdana; font-weight : bold; font-size : 13px; } To use the CSS style above, which of the following should be done? "a.menu" class must be imported for a hyperlink menu. "a.menu" class must be imported for a hyperlink. "menu" class must be imported for a hyperlink. "a" class must be imported for a hyperlink.arrow_forward
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT