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. _______ are predefined classes that apply to specific conditions
box-shadow
margin
Pseudo-classes
link
2. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
<style>
last
-moz-
3. .right {text-align: right;} is an example of a selector made by _______
attachment (with values of 'scroll' or 'fixed')
box-shadow
position (with values: left, center, right, top, center, bottom)
class
4. 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
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
RGBA
block
unordered (<ul>)
5. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
pseudo-class
16
visited
href="<relative URL here>"
6. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
RGBA
only-child
descendant
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
7. Three ways to specify colors in traditional CSS:color name - RGB - _______
general sibling (new to CSS3)
Chrome & Safari
user style sheet
HEX code
8. Linear gradient syntax
background-image: linear-gradient(direction, color %, color %, ...);
attribute selectors
clickable
child
9. Keyword with 'background' that specifies if and how an image repeats
multiple selectors
rel="stylesheet"
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
http://html5shiv.googlecode.com/svn/trunk/html5.js
10. ________ are selectors that let you select a portion of text
formatting
Pseudo-elements
<style>
screen
11. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
type
position (with values: left, center, right, top, center, bottom)
clickable
border: [width] [style] [color];
12. What does this do? padding: 2px, 4px, 6px, 8px;
border: [width] [style] [color];
Nothing! the values are not comma separated (delimited)
last
Relative
13. The 'internal' space between content area & border
attribute
padding
pseudo-class
a:link{text-decoration: none;}
14. 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
:focus pseudo-class
a:link{text-decoration: none;}
box-shadow
width
15. Rules with a higher _____ are the ones that will be used
descendant
Box Model
specificity
attribute
16. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
Pseudo-classes
only-child
attribute selectors
17. HSLA: Hue - Saturation - Lightness - _____
Alpha
reset
16
id
18. Two common pseudo-elements: ______ - first-line
Box Model
first-letter
:focus pseudo-class
reset
19. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
visited
class (.)
width
block
20. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
Firefox
media
zero out
first-letter
21. Shortcut HEX code for #FF99AA
href="<relative URL here>"
#F9A
box-shadow
16
22. _____ measurements are recommended for font sizes
width
min-width
Relative
border: [width] [style] [color];
23. The p.highlight selector is more _____ than the .highlight selector
specific
a:link{text-decoration: none;}
first-letter
!important
24. Wildcard (universal selector) to select all elements
*
ul{ list-style: none;}
<li>
HEX code
25. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
min-width
http://html5shiv.googlecode.com/svn/trunk/html5.js
Relative
Firefox
26. border shorthand syntax
border: [width] [style] [color];
width
#F9A
only-child
27. The default width of an element:As wide as the ______ that contains it
RGBA
Pseudo-classes
Box Model
block
28. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
position (with values: left, center, right, top, center, bottom)
first-letter
link
class (.)
29. 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
16
position (with values: left, center, right, top, center, bottom)
last
user style sheet
30. HTML tag used for embedded styles
RGBA
type
class (.)
<style>
31. The 'external' space or 'force field' between an element & it's containing element
external
!important
attribute
margin
32. Prefix for linear gradient commands in Firefox
type
-moz-
block
Relative
33. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
*
width
<style>
34. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
Lightness
attribute selectors
attribute
#F9A
35. 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
adjacent sibling
em
clickable
Alpha
36. h2+p { margin-top: .5em} is an example of a _____ selector
id
descendant
only-child
adjacent sibling
37. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
-moz-
Box Model
border: [width] [style] [color];
pseudo-class
38. Three ways to code CSS3 colors: _____ - HSL - HSLA
border: [width] [style] [color];
rel="stylesheet"
width
RGBA
39. To mark a rule so that it will override any other rules
!important
link
<li>
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
40. Backwards compatibility for __________ & shadows -webkit-box-shadow
a img {border: none;}
zero out
Chrome & Safari
external
41. HSL: Hue - Saturation - ______
collapsed
Lightness
block
class
42. List alignments work best with ____ measurements
RGBA
specific
em
*
43. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
padding
adjacent sibling
Firefox
44. The colon (:) is indicative of __________
http://html5shiv.googlecode.com/svn/trunk/html5.js
border: [width] [style] [color];
pseudo-classes
#F9A
45. These 'flavors' of selectors are often used by JavaScript
external
attribute selectors
class (.)
formatting
46. There are ____ descriptive color names
#F9A
*
16
RGBA
47. Sequence in which styles are applied: _______ - embedded - inline
formatting
Pseudo-elements
background: [color] [image] [repeat] [attachment] [position];
external
48. 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
zero out
Alpha
Pseudo-elements
Pseudo-classes
49. #main>p{ font-size: 11pt; } is an example of a ______ selector
ul{ list-style: none;}
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
a:link{text-decoration: none;}
child
50. The delimiter symbol for multiple selectors for the same rule set
comma (,)
attachment (with values of 'scroll' or 'fixed')
adjacent sibling
screen