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. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
collapsed
#F9A
block
attribute
2. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
last
specific
embedded styles
<li>
3. Rules with a higher _____ are the ones that will be used
only-child
<style>
specificity
background-image: linear-gradient(direction, color %, color %, ...);
4. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
height
:focus pseudo-class
attribute
5. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
Nothing! the values are not comma separated (delimited)
multiple selectors
collapsed
visited
6. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
href="<relative URL here>"
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Firefox
!important
7. _____ measurements are recommended for font sizes
-moz-
Alpha
border: [width] [style] [color];
Relative
8. Shorthand border syntax
border: [width] [style] [color];
box-shadow
pseudo-classes
height
9. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
background-image: linear-gradient(direction, color %, color %, ...);
Chrome & Safari
block
10. #main { padding: 1em;} is an example of a selector made by _____
general sibling (new to CSS3)
media
id
:focus pseudo-class
11. Shortcut HEX code for #FF99AA
Alpha
#F9A
width
Pseudo-classes
12. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
attribute
Box Model
external
Pseudo-elements
13. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
Lightness
class
class (.)
Pseudo-elements
14. ________ are selectors that let you select a portion of text
rel="stylesheet"
attribute
Pseudo-elements
width
15. Prefix for linear gradient commands in Opera
Nothing! the values are not comma separated (delimited)
-o-
link
border: [width] [style] [color];
16. Linear gradient syntax
-moz-
pseudo-class
Firefox
background-image: linear-gradient(direction, color %, color %, ...);
17. Wildcard (universal selector) to select all elements
class
height
-webkit-
*
18. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
box-shadow
min-width
-o-
id
19. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
*
only-child
block
20. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
comma (,)
:focus pseudo-class
class (.)
21. A rule to remove bullets from a list
position (with values: left, center, right, top, center, bottom)
ul{ list-style: none;}
last
attachment (with values of 'scroll' or 'fixed')
22. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
em
formatting
ul{ list-style: none;}
height
23. Three common CSS3 pseudo-classes: first-child - last-child - _______
Chrome & Safari
class (.)
attachment (with values of 'scroll' or 'fixed')
only-child
24. List alignments work best with ____ measurements
Firefox
descendant
em
attribute selectors
25. h1, h2, h3 {color: blue;} is an example of _____
last
#F9A
multiple selectors
em
26. h2+p { margin-top: .5em} is an example of a _____ selector
descendant
adjacent sibling
specific
formatting
27. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
Pseudo-elements
link
reset
specificity
28. The default width of an element:As wide as the ______ that contains it
block
media
external
padding
29. Tag used to bring CSS into a web page from an external source
http://html5shiv.googlecode.com/svn/trunk/html5.js
link
embedded styles
Pseudo-classes
30. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
background-image: linear-gradient(direction, color %, color %, ...);
rel="stylesheet"
!important
31. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
pseudo-class
only-child
collapsed
child
32. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
ul{ list-style: none;}
user style sheet
<li>
Nothing! the values are not comma separated (delimited)
33. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
Lightness
ul{ list-style: none;}
embedded styles
last
34. Attribute specifying the location of an external style sheet
block
!important
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
href="<relative URL here>"
35. Two new box model properties in CSS3: border-radius and ________
attribute
position (with values: left, center, right, top, center, bottom)
box-shadow
width
36. Three ways to code CSS3 colors: _____ - HSL - HSLA
block
comma (,)
child
RGBA
37. Prefix for linear gradient commands in Firefox
zero out
height
-moz-
http://html5shiv.googlecode.com/svn/trunk/html5.js
38. Attribute for an external style sheet
box-shadow
external
specific
rel="stylesheet"
39. border shorthand syntax
-o-
border: [width] [style] [color];
reset
border: [width] [style] [color];
40. 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 ______
:focus pseudo-class
Box Model
box-shadow
a:link{text-decoration: none;}
41. The p.highlight selector is more _____ than the .highlight selector
specific
a img {border: none;}
<style>
type
42. 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
width
visited
Pseudo-elements
!important
43. HSLA: Hue - Saturation - Lightness - _____
http://html5shiv.googlecode.com/svn/trunk/html5.js
height
<li>
Alpha
44. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
class
specific
em
width
45. To mark a rule so that it will override any other rules
first-letter
!important
Box Model
only-child
46. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
unordered (<ul>)
child
!important
descendant
47. HTML tag used for embedded styles
<style>
width
-o-
first-letter
48. Two common pseudo-elements: ______ - first-line
first-letter
Relative
child
box-shadow
49. The 'external' space or 'force field' between an element & it's containing element
margin
external
descendant
ul{ list-style: none;}
50. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
box-shadow
height
block