SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
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. 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
Box Model
zero out
multiple selectors
height
2. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
border: [width] [style] [color];
block
Firefox
embedded styles
3. 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
last
user style sheet
comma (,)
first-letter
4. border shorthand syntax
pseudo-class
user style sheet
margin
border: [width] [style] [color];
5. Shorthand border syntax
class (.)
border: [width] [style] [color];
em
attachment (with values of 'scroll' or 'fixed')
6. Two new box model properties in CSS3: border-radius and ________
Pseudo-elements
first-letter
box-shadow
Box Model
7. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
block
formatting
type
min-width
8. Three ways to code CSS3 colors: _____ - HSL - HSLA
clickable
block
RGBA
Nothing! the values are not comma separated (delimited)
9. Attribute specifying the location of an external style sheet
attachment (with values of 'scroll' or 'fixed')
href="<relative URL here>"
reset
#F9A
10. To mark a rule so that it will override any other rules
box-shadow
attribute
!important
user style sheet
11. To make sure someone who can't use a mouse has the same experience as a 'mouser' style the :hover pseudo-class the same as the ______
padding
:focus pseudo-class
Chrome & Safari
http://html5shiv.googlecode.com/svn/trunk/html5.js
12. Keyword with 'background' that specifies if and how an image repeats
descendant
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Firefox
height
13. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
visited
attribute
margin
width
14. These 'flavors' of selectors are often used by JavaScript
attribute selectors
media
descendant
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
15. The ______ keyword is typically used for centering an element in it's containing (parent) block - but to do that you must also specify the width of the element
first-letter
*
attachment (with values of 'scroll' or 'fixed')
width
16. _______ are predefined classes that apply to specific conditions
specificity
min-width
first-letter
Pseudo-classes
17. The p.highlight selector is more _____ than the .highlight selector
specific
width
only-child
a:link{text-decoration: none;}
18. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
block
RGBA
user style sheet
box-shadow
19. List alignments work best with ____ measurements
!important
em
comma (,)
first-letter
20. Two common pseudo-elements: ______ - first-line
background-image: linear-gradient(direction, color %, color %, ...);
clickable
first-letter
border: [width] [style] [color];
21. There are ____ descriptive color names
16
-moz-
block
HEX code
22. Linear gradient syntax
attribute
Pseudo-classes
background-image: linear-gradient(direction, color %, color %, ...);
#F9A
23. What does this do? padding: 2px, 4px, 6px, 8px;
Lightness
margin
Nothing! the values are not comma separated (delimited)
-moz-
24. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
block
descendant
http://html5shiv.googlecode.com/svn/trunk/html5.js
comma (,)
25. HTML5 structural tags in older browsers must be styled as _____ elements
block
first-letter
width
unordered (<ul>)
26. Prefix for linear gradient commands in Opera
general sibling (new to CSS3)
block
a:link{text-decoration: none;}
-o-
27. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
position (with values: left, center, right, top, center, bottom)
screen
embedded styles
block
28. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
class
Lightness
<style>
29. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
-moz-
specificity
Box Model
height
30. Three common CSS3 pseudo-classes: first-child - last-child - _______
Chrome & Safari
only-child
formatting
class (.)
31. Attribute for an external style sheet
comma (,)
padding
visited
rel="stylesheet"
32. HSL: Hue - Saturation - ______
multiple selectors
Lightness
http://html5shiv.googlecode.com/svn/trunk/html5.js
margin
33. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
link
external
screen
reset
34. A rule to remove a hyperlink border from around an image hyperlink
!important
a img {border: none;}
width
height
35. h2+p { margin-top: .5em} is an example of a _____ selector
pseudo-class
16
adjacent sibling
RGBA
36. Sequence in which styles are applied: _______ - embedded - inline
block
block
external
comma (,)
37. [ ] are indicative of _______ selectors
attribute
em
only-child
box-shadow
38. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
visited
formatting
height
descendant
39. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
first-letter
unordered (<ul>)
width
<li>
40. The delimiter symbol for multiple selectors for the same rule set
ul{ list-style: none;}
-o-
adjacent sibling
comma (,)
41. h1, h2, h3 {color: blue;} is an example of _____
multiple selectors
pseudo-class
<style>
padding
42. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
a:link{text-decoration: none;}
block
Nothing! the values are not comma separated (delimited)
43. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
multiple selectors
-o-
reset
44. Prefix for linear gradient commands in Safari & Chrome
attribute selectors
-webkit-
width
pseudo-class
45. ________ are selectors that let you select a portion of text
Pseudo-elements
box-shadow
width
ul{ list-style: none;}
46. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
visited
*
RGBA
user style sheet
47. Default for the media attribute
screen
HEX code
external
-moz-
48. A rule to remove bullets from a list
pseudo-class
Firefox
border: [width] [style] [color];
ul{ list-style: none;}
49. _____ measurements are recommended for font sizes
Relative
formatting
background-image: linear-gradient(direction, color %, color %, ...);
Lightness
50. Rules with a higher _____ are the ones that will be used
ul{ list-style: none;}
specificity
descendant
Chrome & Safari