Deck 4: Cascading Style Sheets Basics
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 4: Cascading Style Sheets Basics
1
Use the ______ element to create a generic area or section on a web page that is physically separated from others.
A) div
B) strong
C) h1
D) small
A) div
B) strong
C) h1
D) small
A
2
To apply a style to exactly one element on a web page, configure a CSS _____________.
A) group
B) id
C) class
D) None of the above
A) group
B) id
C) class
D) None of the above
D
3
Which of the following is a CSS selector that will configure the paragraph elements within the footer element.
A) p footer
B) footer p
C) #footer p
D) .footer p
A) p footer
B) footer p
C) #footer p
D) .footer p
B
4
Select the code below that uses CSS to configure a background color of #eaeaea for a web page.
A) body {background-color:#eaeaea; }
B) document {background-page:#eaeaea; }
C) body {bgcolor:#eaeaea; }
D) None of the above
A) body {background-color:#eaeaea; }
B) document {background-page:#eaeaea; }
C) body {bgcolor:#eaeaea; }
D) None of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
CSS was first approved as a standard by the W3C in ______.
A) 1996
B) 2002
C) 1992
D) none of the above
A) 1996
B) 2002
C) 1992
D) none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
According to the CSS order of precedence, ______ styles override ________ styles.
A) external, embedded
B) embedded, inline
C) inline, external
D) external, inline
A) external, embedded
B) embedded, inline
C) inline, external
D) external, inline
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
When CSS is coded in the body of the web page as an attribute of an HTML tag it is called ________.
A) Embedded
B) Inline
C) External
D) Imported
A) Embedded
B) Inline
C) External
D) Imported
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following will configure all the span elements with red (#FF0000) text color?
A) span { color: #FF0000; }
B) #span { color: #FF0000; }
C) .span { color: #FF0000; }
D) < span style="color: #FF0000;" >
A) span { color: #FF0000; }
B) #span { color: #FF0000; }
C) .span { color: #FF0000; }
D) < span style="color: #FF0000;" >
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Select the items below that can be used as a CSS Selector.
A) an HTML element
B) a class name
C) an id name
D) All of the above
A) an HTML element
B) a class name
C) an id name
D) All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Use the ______ element to create logical areas on a web page that are embedded within paragraphs or other block formatting elements.
A) div
B) span
C) both a and b
D) neither a nor b
A) div
B) span
C) both a and b
D) neither a nor b
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Use the _____ element to code embedded styles on a web page.
A) link
B) style
C) embed
D) css
A) link
B) style
C) embed
D) css
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is the CSS property used to set the text color?
A) bgcolor
B) background-color
C) color
D) none of the above
A) bgcolor
B) background-color
C) color
D) none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Use the ______ element to associate a web page with an external style sheet.
A) target
B) a
C) include
D) link
A) target
B) a
C) include
D) link
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Cascading Style Sheet rules are comprised of:
A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) Elements and Attributes
A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) Elements and Attributes
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is a CSS selector that will configure the anchor elements within the nav element.
A) nav a
B) .nav a
C) nav anchor
D) #nav a
A) nav a
B) .nav a
C) nav anchor
D) #nav a
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
An External Style Sheet uses the _____ file extension.
A) ess
B) css
C) html
D) No file extension is necessary
A) ess
B) css
C) html
D) No file extension is necessary
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following is the CSS property used to set the background color?
A) bgcolor
B) background-color
C) color
D) none of the above
A) bgcolor
B) background-color
C) color
D) none of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Where do you place the code to associate a web page with an external style sheet?
A) in the external style sheet
B) in the DOCTYPE of the web page document
C) in the body section of the web page document
D) in the head section of the web page document
A) in the external style sheet
B) in the DOCTYPE of the web page document
C) in the body section of the web page document
D) in the head section of the web page document
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
To apply a style to one or more of elements on a web page, configure a CSS _____________.
A) group
B) id
C) class
D) attribute
A) group
B) id
C) class
D) attribute
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Select the code below that configures a class called "offer" with blue text using CSS.
A) offer { color: blue; }
B) .offer { color: blue; }
C) .offer { text: blue; }
D) #offer { color: blue; }
A) offer { color: blue; }
B) .offer { color: blue; }
C) .offer { text: blue; }
D) #offer { color: blue; }
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
_____ External styles override or take precedence over inline styles.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Which type of selector is specified by placing a # symbol in front of the selector name?
a. tag
b. first
c. class
d. id
True or False.
25 ____ Embedded styles override or take precedence over external styles.
a. tag
b. first
c. class
d. id
True or False.
25 ____ Embedded styles override or take precedence over external styles.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Which of the following is an HTML attribute that configures inline styles?
A) link
B) style
C) id
D) type
A) link
B) style
C) id
D) type
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is correct CSS syntax?
A) p { color: #000000; }
B) p { color=#000000; }
C) p : color #000000;
C) p { color;#000000; }
A) p { color: #000000; }
B) p { color=#000000; }
C) p : color #000000;
C) p { color;#000000; }
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following symbols terminates a style declaration?
A) : colon
B) ; semi-colon
C) ! exclamation mark
D) # hash mark
A) : colon
B) ; semi-colon
C) ! exclamation mark
D) # hash mark
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck