Chapter 4: Multiple Choice

9 September 2022
4.7 (114 reviews)
12 test answers

Unlock all answers in this set

Unlock answers (8)
question
To provide the top-level formatting for a page, a style sheet commonly formats a. body and HTML5 semantic elements b. classes c. universal selectors d. attributes
answer
body and HTML5 semantic elements
question
When you use an external style sheet with an HTML document, you get all but one of the benefits that follow. Which one is it? a. Your HTML files are smaller and simpler b. Your CSS files are easy to create and maintain c. You provide consistent formatting for all of the pages that use the style sheet d. You can modify the formatting for all of the related pages by changing one style sheet
answer
your CSS files are easy to create and maintain
question
Which of the following units of measurement is equal to the font size for the current font? a. a pixel b. a point c. an em d. a percentage
answer
an em
question
Which of the following is NOT one of the ways that you can specify a color in CSS? a. color: white; b. color: rgb(50%, 25%, 25%); c. color: getColor("red"); d. color: #cd5c5c;
answer
color: getColor("red");
question
The RGBA and HSLA colors that are available with CSS3 let you specify a. the opacity of the color b. the concentration of the color c. a pattern for the color d. a name for the color
answer
the opacity of the color
question
Which of the following is a valid selector for a class named menu? a. menu b. #menu c. .menu d. > menu
answer
.menu
question
A child selector in CSS allows you to select elements that a. are any descendant of an element b. are a direct descendant of an element c. have an attribute that matches the specified child d. have a class that matches the specified child
answer
are a direct descendant of an element
question
Pseudo-class selectors let you apply formatting a. to selected portions of text b. to elements that specify multiple classes c. when a button control is clicked d. when specific conditions occur
answer
when specific conditions occur
question
If two CSS rules conflict, which of the following rules overrides the other rule? a. the rule marked as !important in a web page b. the normal rule in a web page c. the normal rule in a user style sheet d. the default rule for the web browser
answer
the rule marked as !important in a web page
question
Which of the following selectors is most specific? a. .nav b. #nav c. a d. div
answer
#nav