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. Shorthand for background property
class
HEX code
adjacent sibling
background: [color] [image] [repeat] [attachment] [position];
2. HSLA: Hue - Saturation - Lightness - _____
Nothing! the values are not comma separated (delimited)
em
Alpha
class (.)
3. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
reset
pseudo-class
#F9A
-moz-
4. List alignments work best with ____ measurements
em
attribute
-o-
-moz-
5. Three ways to code CSS3 colors: _____ - HSL - HSLA
RGBA
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
border: [width] [style] [color];
clickable
6. Shorthand border syntax
id
formatting
border: [width] [style] [color];
http://html5shiv.googlecode.com/svn/trunk/html5.js
7. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
specific
a:link{text-decoration: none;}
Box Model
attribute selectors
8. Three common CSS3 pseudo-classes: first-child - last-child - _______
last
only-child
unordered (<ul>)
media
9. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
background: [color] [image] [repeat] [attachment] [position];
attribute
formatting
10. Prefix for linear gradient commands in Firefox
-moz-
Chrome & Safari
href="<relative URL here>"
*
11. Keyword with 'background' that specifies if and how an image repeats
id
visited
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
<li>
12. Wildcard (universal selector) to select all elements
box-shadow
pseudo-class
Lightness
*
13. The 'external' space or 'force field' between an element & it's containing element
margin
background-image: linear-gradient(direction, color %, color %, ...);
pseudo-class
descendant
14. A rule to remove bullets from a list
padding
specific
ul{ list-style: none;}
only-child
15. h1, h2, h3 {color: blue;} is an example of _____
pseudo-class
attribute
RGBA
multiple selectors
16. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
comma (,)
reset
rel="stylesheet"
Firefox
17. Tag used to bring CSS into a web page from an external source
em
http://html5shiv.googlecode.com/svn/trunk/html5.js
link
attribute
18. Attribute specifying the location of an external style sheet
href="<relative URL here>"
border: [width] [style] [color];
<style>
HEX code
19. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
http://html5shiv.googlecode.com/svn/trunk/html5.js
class
margin
16
20. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attachment (with values of 'scroll' or 'fixed')
position (with values: left, center, right, top, center, bottom)
attribute
a img {border: none;}
21. Prefix for linear gradient commands in Safari & Chrome
attachment (with values of 'scroll' or 'fixed')
id
-webkit-
zero out
22. Linear gradient syntax
<li>
16
Firefox
background-image: linear-gradient(direction, color %, color %, ...);
23. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
attribute
position (with values: left, center, right, top, center, bottom)
height
child
24. [ ] are indicative of _______ selectors
*
attribute
Lightness
reset
25. ________ are selectors that let you select a portion of text
min-width
Pseudo-elements
comma (,)
box-shadow
26. Rules with a higher _____ are the ones that will be used
Pseudo-classes
user style sheet
-moz-
specificity
27. 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 ______
screen
-moz-
#F9A
:focus pseudo-class
28. Three ways to specify colors in traditional CSS:color name - RGB - _______
adjacent sibling
box-shadow
HEX code
a img {border: none;}
29. There are ____ descriptive color names
pseudo-classes
Alpha
16
border: [width] [style] [color];
30. 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
#F9A
unordered (<ul>)
type
background-image: linear-gradient(direction, color %, color %, ...);
31. 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
min-width
Chrome & Safari
box-shadow
clickable
32. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
block
descendant
-o-
33. #main { padding: 1em;} is an example of a selector made by _____
id
HEX code
padding
external
34. HSL: Hue - Saturation - ______
Nothing! the values are not comma separated (delimited)
border: [width] [style] [color];
Lightness
16
35. Prefix for linear gradient commands in Opera
-o-
Pseudo-classes
last
width
36. A rule to remove a hyperlink border from around an image hyperlink
visited
em
adjacent sibling
a img {border: none;}
37. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
attribute
width
pseudo-class
38. The colon (:) is indicative of __________
box-shadow
attribute selectors
reset
pseudo-classes
39. Backwards compatibility for __________ & shadows -webkit-box-shadow
formatting
Relative
Chrome & Safari
last
40. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
background-image: linear-gradient(direction, color %, color %, ...);
:focus pseudo-class
block
collapsed
41. Five common CSS pseudo classes:link - _______ - active - hover - focus
class (.)
visited
http://html5shiv.googlecode.com/svn/trunk/html5.js
!important
42. The delimiter symbol for multiple selectors for the same rule set
comma (,)
-moz-
position (with values: left, center, right, top, center, bottom)
-webkit-
43. #main>p{ font-size: 11pt; } is an example of a ______ selector
-webkit-
child
attribute
pseudo-class
44. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
user style sheet
reset
Nothing! the values are not comma separated (delimited)
unordered (<ul>)
45. .right {text-align: right;} is an example of a selector made by _______
class
Nothing! the values are not comma separated (delimited)
descendant
child
46. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
class
min-width
specificity
!important
47. Two new box model properties in CSS3: border-radius and ________
http://html5shiv.googlecode.com/svn/trunk/html5.js
collapsed
pseudo-classes
box-shadow
48. The p.highlight selector is more _____ than the .highlight selector
specific
class (.)
http://html5shiv.googlecode.com/svn/trunk/html5.js
ul{ list-style: none;}
49. Shortcut HEX code for #FF99AA
#F9A
first-letter
box-shadow
zero out
50. CSS is a special language used just for _____
http://html5shiv.googlecode.com/svn/trunk/html5.js
formatting
border: [width] [style] [color];
unordered (<ul>)