Chapter 4

23 August 2022
4.7 (114 reviews)
26 test answers

Unlock all answers in this set

Unlock answers (22)
question
Cascading Style Sheet rules are comprised of
answer
Selectors and Declarations
question
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.
answer
Liline
question
Select the items below that can be used as a CSS Selector. a. an HTML element b. a class name c. an ID name d. All of the Above
answer
All of the Above
question
Which of the following will configure all the span elements with red (#FF0000) text color?
answer
span { color: #FF0000; }
question
To apply a style to one or more of elements on a web page, configure a CSS _____________.
answer
class
question
An External Style Sheet uses the _____ file extension.
answer
css
question
Use the ______ element to associate a web page with an external style sheet.
answer
link
question
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.
answer
body {background-color:#eaeaea; }
question
Select the code below that configures a class called "offer" with blue text using CSS.
answer
.offer { color: blue; }
question
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements
answer
span
question
Use the _____ element to code embedded styles on a web page.
answer
style
question
Use the ______ element to create a generic area or section on a web page that is physically separated from others
answer
div
question
CSS was first approved as a standard by the W3C in ______.
answer
1996
question
Which of the following is the CSS property used to set the background color?
answer
background-color
question
Which of the following is the CSS property used to set the text color?
answer
color
question
According to the CSS order of precedence, ______ styles override ________ styles.
answer
inline, external
question
Which of the following is a CSS selector that will configure the anchor elements within the nav element.
answer
nav a
question
To apply a style to exactly one element on a web page, configure a CSS _____________.
answer
id
question
Where do you place the code to associate a web page with an external style sheet?
answer
In the head section of the web page document.
question
Which of the following is a CSS selector that will configure the paragraph elements within the footer element
answer
footer p
question
Which of the following symbols terminates a style declaration?
answer
semi-colon (;)
question
Which of the following is an HTML attribute that configures inline styles?
answer
style
question
Which of the following is correct CSS syntax?
answer
p { color: #000000; }
question
Which type of selector is specified by placing a # symbol in front of the selector name?
answer
id
question
Embedded styles override or take precedence over external styles.
answer
true
question
External styles override or take precedence over inline styles.
answer
false