Ch4 Flashcards Preview

Web Found > Ch4 > Flashcards

Flashcards in Ch4 Deck (16):
1

Which of the following can you NOT do when adding shadows to text?

Set the opacity of the shadow.

2

To specify a color in a CSS rule, you can code a/an ____________________ value in percentages or in hexidecimal numbers.

RGB

3

In the rule set that follows, the selector applies to all elements that have “red” as their ____________________________ name.
.red { color: red; }

class

4

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

5

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

6

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

7

To provide the top-level formatting for a page, a style sheet commonly formats

body and HTML5 semantic elements

8

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

9

Which of the following is a valid selector for a class named menu?

.menu

10

A child selector in CSS allows you to select elements that


are a direct descendant of an element

11

To include a CSS file in an HTML document, you use the _______________________ element.

link

12

Times New Roman is a font ________________

family

13

Pseudo-class selectors let you apply formatting


when specific conditions occur

14

If two CSS rules conflict, which of the following rules overrides the other rule?


the rule marked as !important in a web page

15

Which of the following is NOT one of the ways that you can specify a color in CSS?


color: getColor("red");

16

You use a JavaScript ____________________ to help older browsers recognize the HTML5 structural elements

shim