Ch4 Flashcards
Which of the following can you NOT do when adding shadows to text?
Set the opacity of the shadow.
To specify a color in a CSS rule, you can code a/an ____________________ value in percentages or in hexidecimal numbers.
RGB
In the rule set that follows, the selector applies to all elements that have “red” as their ____________________________ name.
.red { color: red; }
class
For user accessibility, you should apply the same formatting to the :focus pseudo-class for an element as you apply to the ____________________ pseudo-class for that element.
:hover
In the rule set that follows, the selector selects all paragraph elements that are \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ of the element with “main” as its id. #main p { font-size: 75%; }
descendants
To include styles in an HTML document, you can use an external style sheet, an embedded style sheet or ____________________________ attributes on inline HTML elements.
style
To provide the top-level formatting for a page, a style sheet commonly formats
body and HTML5 semantic elements
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?
Your CSS files are easy to create and maintain
Which of the following is a valid selector for a class named menu?
.menu
A child selector in CSS allows you to select elements that
are a direct descendant of an element
To include a CSS file in an HTML document, you use the _______________________ element.
link
Times New Roman is a font ________________
family
Pseudo-class selectors let you apply formatting
when specific conditions occur
If two CSS rules conflict, which of the following rules overrides the other rule?
the rule marked as !important in a web page
Which of the following is NOT one of the ways that you can specify a color in CSS?
color: getColor(“red”);