Which part of the following CSS code would you edit in order to change the background color of the overall web page?

body { color: #000000 background-color: #C9E1FF font-family: Arial, "Lucida Console", sans-serif} h1 { color: #114485 font-size: x-large font-family: Georgia, "Times New Roman", Times, serif; }


A. background-color #C9E1FF
B. body {
C. color: #000000
D. color: # 114485




What extension do CSS files have?

A. css
B. html
C. .jsv
D. .jv





In the following piece of CSS code, what is #ffffff called?

body { color: #ffffff }


A. property
B. rule
C. selector
D. value



In the following piece of CSS code, what is font-size called?

h2 { font-size: small }


A. property
B. rule
C. selector
D. value



Which of the following is true about CSS?


A. A seperate CSS file is needed for each HTML file in a website.
B. It is a language used to customize web pages based on user preferences.
C. It is contained in a seperate file than HTML files.
D. It is used to combine formatting information and content into one single file.

Respuesta :

Qn. 1. Answer is (A) background-color #C9E1FF:


The background color of a page property specifies the color of the background of an element. For example, a web page will have a orange color if we input the following property;

 body {
    background-color: orange;
}


In CSS, a color can most often be specified by a hex value like #C9E1FF or #ff0000

2.  Answer is (A) .css file extension.


CSS which stands for cascading style sheet is used to format the contents of a webpage. CSS files can define the color, font, line spacing, borders, and indentation. CSS contains the .css file extension used to format contents of an associate website.

3. Answer is (D) Value.


A rule set in CSS consists of a selector and a declaration block. The Value always lies on the declaration block which contains a CSS property value and name, separated by a semicolon. A CSS value is used to define the set of valid values for a CSS function or property.

4. The answer is (A) Property.


Properties which are usually inside a curly brackets, simply take the form of words like Font weight, color or background color. Other examples of CSS properties include border which includes border style and border width, Font-family, Padding and Margins.

5. The answer is (C) It is contained in a separate file than HTML files.


We use CSS to define and include the design in our web pages. CSS solved a big problem of removing the style formatting from the HTML page. CSS is able to display one HTML page with four different style sheets.




ACCESS MORE