Deck 3: Cascading Style Sheets (CSS)

Full screen (f)
exit full mode
Question
Which CSS property is the bold value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
Use Space or
up arrow
down arrow
to flip the card.
Question
If you want to apply the same formatting feature(s) to more than one type of element, you can implement that with one CSS rule, where the element types appear at the left, separated by:

A) spaces.
B) commas.
C) semicolons.
D) colons.
Question
In a CSS rule, if you specify a property with a value of initial, it forces the default value to be used for that property.
Question
Coding conventions suggest positioning the style container (with CSS rules) at the top of the web page's body container.
Question
Suppose that a CSS rule uses the selector q.dark. The rule matches elements whose type is "dark" and whose class attribute has a value of "q".
Question
The ______ element is a generic block element that does not provide any special meaning by itself.
Question
A universal selector is considered to be a wildcard. What is a wildcard?
Question
What is the principle of locality? In your answer, you must mention local CSS rules and global CSS rules.
Question
Provide a class selector rule that displays matching elements with italicized text. For your class selector, use italics as the class attribute value.
Question
For the font-size property, it is legal to specify a value in em units. What did "em" originally stand for?
Question
Given the following CSS rule, which type of selector is used?
<code>* {color: blue;}</code>

A) Type selector
B) Universal selector
C) Class selector
D) Pseudo selector
Question
To draw a line through an element's text, you should use which of the following property-value pairs?

A) <code>text-transform: strike-through</code>
B) <code>text</code>-transform: <code>line-out</code>
C) text-<code>decoration: line-through</code>
D) text-<code>decoration: strike-out</code>
Question
To match an element, an ID selector matches the element's:

A) <code>class</code> attribute value.
B) <code>id</code> attribute value.
C) type.
Question
Normally, you should try to separate web page content code from CSS code.
Question
When applied to a <code>p</code> element, the <code>text-align: justify</code> property-value pair causes the paragraph's text to be right aligned with the right edge of the p element's container.
Question
If you want to use multiple words for a <code>class</code> attribute value, coding conventions suggest using hyphens to separate the words.
Question
An <code>id</code> attribute's value must be unique within a particular web page.
Question
If you specify an element at the left of a selector, that's an example of a(n) ______ selector.
Question
The __________ property specifies the width of the area on the interior of an element's border.
Question
Code that is relatively easy to make changes to in the future is referred to as __________.
Question
What is the default value for the border-style property?

A) None
B) Solid
C) Visible
D) Black
Question
The font shorthand property incorporates granular font sub-properties. What character goes between the values for those sub-properties?

A) Space
B) Comma
C) Semicolon
D) Colon
Question
Which CSS property is the small-caps value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
Question
Which of the following is the hexadecimal-format RGB value for white?

A) # (100,100,100)
B) # (ff,ff,ff)
C) # 000000
D) # ffffff
Question
If you apply the opacity property as part of a CSS rule, it will affect the opacity for:

A) the foreground and background colors for matched elements.
B) the foreground color for matched elements.
C) the background color for matched elements.
Question
The text-indent property specifies the size of the indentation of all of the lines in a block of text.
Question
A generic font name should go at the left of a font-family list of font names.
Question
For HSL color values, the hue value indicates where the color is along the white-black spectrum.
Question
The CSS __________ service tool verifies that CSS code comports with the W3C's CSS standard.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/29
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 3: Cascading Style Sheets (CSS)
1
Which CSS property is the bold value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
C
2
If you want to apply the same formatting feature(s) to more than one type of element, you can implement that with one CSS rule, where the element types appear at the left, separated by:

A) spaces.
B) commas.
C) semicolons.
D) colons.
B
3
In a CSS rule, if you specify a property with a value of initial, it forces the default value to be used for that property.
True
4
Coding conventions suggest positioning the style container (with CSS rules) at the top of the web page's body container.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
5
Suppose that a CSS rule uses the selector q.dark. The rule matches elements whose type is "dark" and whose class attribute has a value of "q".
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
6
The ______ element is a generic block element that does not provide any special meaning by itself.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
7
A universal selector is considered to be a wildcard. What is a wildcard?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
8
What is the principle of locality? In your answer, you must mention local CSS rules and global CSS rules.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
9
Provide a class selector rule that displays matching elements with italicized text. For your class selector, use italics as the class attribute value.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
10
For the font-size property, it is legal to specify a value in em units. What did "em" originally stand for?
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
11
Given the following CSS rule, which type of selector is used?
<code>* {color: blue;}</code>

A) Type selector
B) Universal selector
C) Class selector
D) Pseudo selector
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
12
To draw a line through an element's text, you should use which of the following property-value pairs?

A) <code>text-transform: strike-through</code>
B) <code>text</code>-transform: <code>line-out</code>
C) text-<code>decoration: line-through</code>
D) text-<code>decoration: strike-out</code>
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
13
To match an element, an ID selector matches the element's:

A) <code>class</code> attribute value.
B) <code>id</code> attribute value.
C) type.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
14
Normally, you should try to separate web page content code from CSS code.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
15
When applied to a <code>p</code> element, the <code>text-align: justify</code> property-value pair causes the paragraph's text to be right aligned with the right edge of the p element's container.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
16
If you want to use multiple words for a <code>class</code> attribute value, coding conventions suggest using hyphens to separate the words.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
17
An <code>id</code> attribute's value must be unique within a particular web page.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
18
If you specify an element at the left of a selector, that's an example of a(n) ______ selector.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
19
The __________ property specifies the width of the area on the interior of an element's border.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
20
Code that is relatively easy to make changes to in the future is referred to as __________.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
21
What is the default value for the border-style property?

A) None
B) Solid
C) Visible
D) Black
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
22
The font shorthand property incorporates granular font sub-properties. What character goes between the values for those sub-properties?

A) Space
B) Comma
C) Semicolon
D) Colon
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
23
Which CSS property is the small-caps value associated with?

A) font-style
B) font-variant
C) font-weight
D) font-lettering
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is the hexadecimal-format RGB value for white?

A) # (100,100,100)
B) # (ff,ff,ff)
C) # 000000
D) # ffffff
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
25
If you apply the opacity property as part of a CSS rule, it will affect the opacity for:

A) the foreground and background colors for matched elements.
B) the foreground color for matched elements.
C) the background color for matched elements.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
26
The text-indent property specifies the size of the indentation of all of the lines in a block of text.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
27
A generic font name should go at the left of a font-family list of font names.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
28
For HSL color values, the hue value indicates where the color is along the white-black spectrum.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
29
The CSS __________ service tool verifies that CSS code comports with the W3C's CSS standard.
Unlock Deck
Unlock for access to all 29 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 29 flashcards in this deck.