SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
Search
Test your basic knowledge |
CSS 3
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Two common pseudo-elements: ______ - first-line
class (.)
#F9A
embedded styles
first-letter
2. _______ are predefined classes that apply to specific conditions
ul{ list-style: none;}
Nothing! the values are not comma separated (delimited)
Pseudo-classes
box-shadow
3. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
attachment (with values of 'scroll' or 'fixed')
collapsed
a:link{text-decoration: none;}
4. Shorthand for background property
attribute
background: [color] [image] [repeat] [attachment] [position];
min-width
last
5. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
!important
screen
embedded styles
a:link{text-decoration: none;}
6. HTML tag used for embedded styles
unordered (<ul>)
<style>
position (with values: left, center, right, top, center, bottom)
a img {border: none;}
7. The delimiter symbol for multiple selectors for the same rule set
specificity
comma (,)
attribute
box-shadow
8. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
child
Box Model
pseudo-class
unordered (<ul>)
9. List alignments work best with ____ measurements
em
<li>
adjacent sibling
descendant
10. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
comma (,)
min-width
screen
http://html5shiv.googlecode.com/svn/trunk/html5.js
11. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
id
width
Firefox
pseudo-class
12. Default for the media attribute
class (.)
box-shadow
box-shadow
screen
13. These 'flavors' of selectors are often used by JavaScript
attribute selectors
Nothing! the values are not comma separated (delimited)
-moz-
Relative
14. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
type
first-letter
id
attribute
15. A rule to remove bullets from a list
ul{ list-style: none;}
multiple selectors
a img {border: none;}
embedded styles
16. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
background-image: linear-gradient(direction, color %, color %, ...);
position (with values: left, center, right, top, center, bottom)
width
background: [color] [image] [repeat] [attachment] [position];
17. .right {text-align: right;} is an example of a selector made by _______
visited
HEX code
RGBA
class
18. Prefix for linear gradient commands in Safari & Chrome
Pseudo-elements
attribute
Box Model
-webkit-
19. Shortcut HEX code for #FF99AA
a img {border: none;}
attachment (with values of 'scroll' or 'fixed')
#F9A
unordered (<ul>)
20. In a set of possibly conflicting rules the one that is mentioned _____ is the one that will be used and all other things being equal
zero out
width
last
screen
21. A rule to remove a hyperlink border from around an image hyperlink
screen
type
a img {border: none;}
attribute selectors
22. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
block
clickable
height
descendant
23. In a navigation list (vertical): To make the entire box for a link ____ you can set the display property for the <a> elements to block and use padding to provide the space around the links
media
clickable
type
reset
24. HSL: Hue - Saturation - ______
attribute
clickable
#F9A
Lightness
25. What does this do? padding: 2px, 4px, 6px, 8px;
class
attribute selectors
first-letter
Nothing! the values are not comma separated (delimited)
26. [ ] are indicative of _______ selectors
attribute
collapsed
specificity
min-width
27. border shorthand syntax
border: [width] [style] [color];
width
height
width
28. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
attachment (with values of 'scroll' or 'fixed')
box-shadow
rel="stylesheet"
child
29. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
pseudo-class
-webkit-
width
type
30. Rule to remove underlining in a hyperlink that hasn't yet been visited
last
<style>
a:link{text-decoration: none;}
attribute
31. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
em
href="<relative URL here>"
pseudo-classes
position (with values: left, center, right, top, center, bottom)
32. To mark a rule so that it will override any other rules
class (.)
#F9A
!important
Alpha
33. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
Pseudo-elements
height
Box Model
34. Two new box model properties in CSS3: border-radius and ________
adjacent sibling
attribute
box-shadow
id
35. Because different browsers have different default margins for block elements you often need to ________ those values using the * (wildcard) selector and set the margins explicitly
adjacent sibling
only-child
media
zero out
36. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
unordered (<ul>)
user style sheet
<li>
position (with values: left, center, right, top, center, bottom)
37. #main li { color: green;} is an example of a _____ selector
position (with values: left, center, right, top, center, bottom)
href="<relative URL here>"
descendant
Pseudo-elements
38. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
39. CSS is a special language used just for _____
multiple selectors
formatting
last
pseudo-class
40. _____ measurements are recommended for font sizes
specificity
Relative
background-image: linear-gradient(direction, color %, color %, ...);
height
41. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
Relative
RGBA
ul{ list-style: none;}
http://html5shiv.googlecode.com/svn/trunk/html5.js
42. Attribute for an external style sheet
specificity
multiple selectors
rel="stylesheet"
Chrome & Safari
43. Attribute specifying the location of an external style sheet
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
href="<relative URL here>"
width
border: [width] [style] [color];
44. Wildcard (universal selector) to select all elements
HEX code
*
width
-webkit-
45. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
comma (,)
-o-
class (.)
unordered (<ul>)
46. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
Nothing! the values are not comma separated (delimited)
HEX code
reset
<li>
47. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
:focus pseudo-class
Relative
multiple selectors
48. In a navigation bar (horizontal): Code <a> elements nested in <li> elements of an _____ list and style the <li> elements as inline using the display property
clickable
*
unordered (<ul>)
background-image: linear-gradient(direction, color %, color %, ...);
49. Shorthand border syntax
link
class
border: [width] [style] [color];
Chrome & Safari
50. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
collapsed
min-width
user style sheet
http://html5shiv.googlecode.com/svn/trunk/html5.js