Ch4 Flashcards

1
Q

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

A

Set the opacity of the shadow.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

RGB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.

A

:hover

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
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%; }
A

descendants

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

To include styles in an HTML document, you can use an external style sheet, an embedded style sheet or ____________________________ attributes on inline HTML elements.

A

style

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

body and HTML5 semantic elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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 CSS files are easy to create and maintain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

.menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A child selector in CSS allows you to select elements that

A

are a direct descendant of an element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

link

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Times New Roman is a font ________________

A

family

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Pseudo-class selectors let you apply formatting

A

when specific conditions occur

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

the rule marked as !important in a web page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

color: getColor(“red”);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A

shim