Deck 3: Configuring Color and Text With Css
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/22
Play
Full screen (f)
Deck 3: Configuring Color and Text With Css
1
Select the code below that uses CSS to configure a class called "offer" with blue text that uses the Arial or sans-serif font typeface .
A) #offer { color:blue; font-family:Arial,sans-serif;}
B) .offer { color:blue; font-family:Arial,sans-serif;}
C) .offer { text:blue; font-family:Arial,sans-serif;}
D) #offer { color:blue; font-family:Arial,sans-serif;}
A) #offer { color:blue; font-family:Arial,sans-serif;}
B) .offer { color:blue; font-family:Arial,sans-serif;}
C) .offer { text:blue; font-family:Arial,sans-serif;}
D) #offer { color:blue; font-family:Arial,sans-serif;}
B
2
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
B
3
Which CSS property configures the color of text?
A) text-color
B) font-color
C) color
D) font-style
A) text-color
B) font-color
C) color
D) font-style
C
4
Use the ______ tag 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 22 flashcards in this deck.
Unlock Deck
k this deck
5
Use the ______ tag to configure a generic area on a web page that is embedded within a paragraph or other block display element.
A) < div >…< /div >
B) < span >… < /span >
C) < title > … < /title >
D) < meta > …< /meta >
A) < div >…< /div >
B) < span >… < /span >
C) < title > … < /title >
D) < meta > …< /meta >
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
To apply a style to a certain group of elements 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
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
Which CSS property can be used to configure italic text?
A) font-italic
B) font-style
C) font-weight
D) font-type
A) font-italic
B) font-style
C) font-weight
D) font-type
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
CSS was first proposed 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 22 flashcards in this deck.
Unlock Deck
k this deck
9
The declaration property used to set the text color on a web page is:
A) bgcolor
B) text-color
C) color
D) None of the above
A) bgcolor
B) text-color
C) color
D) None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
To associate an external style sheet with a web page, code:
A) a link element in the body section of the web page
B) a link element in the head section of the web page
C) a style element in the body section of the web page
D) a style element in the head section of the web page
E)
A) a link element in the body section of the web page
B) a link element in the head section of the web page
C) a style element in the body section of the web page
D) a style element in the head section of the web page
E)
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
Which CSS property configures the size of text?
A) text-size
B) font-size
C) size
D) font-weight
A) text-size
B) font-size
C) size
D) font-weight
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
Use the ______ tag to configure a section of a web page that is physically separated from others.
A) < div >…< /div >
B) < span >… < /span >
C) < a > … < /a >
D) < i > … < /i >
A) < div >…< /div >
B) < span >… < /span >
C) < a > … < /a >
D) < i > … < /i >
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
Which CSS property configures the font typeface?
A) font-face
B) font-type
C) font-family
D) font-style
E)
A) font-face
B) font-type
C) font-family
D) font-style
E)
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
An external style sheet uses the _____ file extension.
A) ess
B) css
C) htm
D) No file extension is necessary
A) ess
B) css
C) htm
D) No file extension is necessary
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
Select the code below that uses CSS to configure an id named "example" that configures small, italic text.
A) #exampe{ font-size: small; font-weight: italic; }
B) .example { font-size: small; font-style: italic; }
C) .example { font-size: small; font-style: italic; }
D) #example { font-size: small; font-style: italic; }
A) #exampe{ font-size: small; font-weight: italic; }
B) .example { font-size: small; font-style: italic; }
C) .example { font-size: small; font-style: italic; }
D) #example { font-size: small; font-style: italic; }
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
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 22 flashcards in this deck.
Unlock Deck
k this deck
17
Cascading Style Sheet rules are comprised of:
A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) None of the above
A) Selectors and Declarations
B) Properties and Declarations
C) Selectors and Attributes
D) None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
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 22 flashcards in this deck.
Unlock Deck
k this deck
19
Use the _____ tag to code embedded styles on a web page.
A) < link >
B) < style > .. < /style >
C) < embed >
D) none of the above
A) < link >
B) < style > .. < /style >
C) < embed >
D) none of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
Use the __________ property to configure bold text using CSS
A) bold
B) font-style
C) font-weight
D) you cannot configure bold text with CSS
A) bold
B) font-style
C) font-weight
D) you cannot configure bold text with CSS
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
Which CSS property configures the capitalization of text?
A) font-type
B) text-transform
C) text-decoration
D) font-weight
A) font-type
B) text-transform
C) text-decoration
D) font-weight
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
The ___________________ property configures a shadow effect on the text displayed within an element.
A) font-weight
B) shadow
C) text-shadow
D) font-style
A) font-weight
B) shadow
C) text-shadow
D) font-style
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck