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. What does this do? padding: 2px, 4px, 6px, 8px;
HEX code
Alpha
Nothing! the values are not comma separated (delimited)
descendant
2. Default for the media attribute
Firefox
screen
zero out
a img {border: none;}
3. Prefix for linear gradient commands in Firefox
RGBA
#F9A
-moz-
attribute
4. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
zero out
attachment (with values of 'scroll' or 'fixed')
margin
5. Shortcut HEX code for #FF99AA
height
attachment (with values of 'scroll' or 'fixed')
-webkit-
#F9A
6. h1, h2, h3 {color: blue;} is an example of _____
-o-
Box Model
multiple selectors
collapsed
7. A rule to remove a hyperlink border from around an image hyperlink
-webkit-
http://html5shiv.googlecode.com/svn/trunk/html5.js
collapsed
a img {border: none;}
8. 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
-o-
specificity
last
zero out
9. The 'external' space or 'force field' between an element & it's containing element
16
border: [width] [style] [color];
border: [width] [style] [color];
margin
10. #main li { color: green;} is an example of a _____ selector
type
background: [color] [image] [repeat] [attachment] [position];
block
descendant
11. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
media
user style sheet
child
12. HSLA: Hue - Saturation - Lightness - _____
Alpha
Relative
<style>
block
13. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
padding
class (.)
-o-
ul{ list-style: none;}
14. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
first-letter
em
border: [width] [style] [color];
media
15. CSS is a special language used just for _____
general sibling (new to CSS3)
only-child
unordered (<ul>)
formatting
16. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
Alpha
box-shadow
screen
class
17. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
multiple selectors
rel="stylesheet"
attachment (with values of 'scroll' or 'fixed')
18. The delimiter symbol for multiple selectors for the same rule set
comma (,)
border: [width] [style] [color];
pseudo-class
:focus pseudo-class
19. Shorthand for background property
-moz-
<li>
pseudo-class
background: [color] [image] [repeat] [attachment] [position];
20. 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
Nothing! the values are not comma separated (delimited)
specific
16
21. 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
clickable
specific
RGBA
class (.)
22. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
only-child
class (.)
Pseudo-elements
user style sheet
23. Prefix for linear gradient commands in Safari & Chrome
Pseudo-classes
-webkit-
RGBA
Lightness
24. A rule to remove bullets from a list
general sibling (new to CSS3)
ul{ list-style: none;}
height
type
25. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
external
attribute selectors
zero out
26. The colon (:) is indicative of __________
padding
pseudo-classes
width
descendant
27. .right {text-align: right;} is an example of a selector made by _______
specific
child
class
border: [width] [style] [color];
28. h2+p { margin-top: .5em} is an example of a _____ selector
Nothing! the values are not comma separated (delimited)
adjacent sibling
formatting
multiple selectors
29. _____ measurements are recommended for font sizes
link
pseudo-classes
background: [color] [image] [repeat] [attachment] [position];
Relative
30. Three ways to code CSS3 colors: _____ - HSL - HSLA
user style sheet
clickable
RGBA
class (.)
31. HTML5 structural tags in older browsers must be styled as _____ elements
formatting
a:link{text-decoration: none;}
block
visited
32. border shorthand syntax
comma (,)
width
border: [width] [style] [color];
margin
33. 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
Box Model
box-shadow
ul{ list-style: none;}
unordered (<ul>)
34. Three common CSS3 pseudo-classes: first-child - last-child - _______
screen
min-width
background: [color] [image] [repeat] [attachment] [position];
only-child
35. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
multiple selectors
collapsed
Nothing! the values are not comma separated (delimited)
attribute selectors
36. Shorthand border syntax
border: [width] [style] [color];
width
formatting
embedded styles
37. 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
descendant
last
general sibling (new to CSS3)
width
38. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
multiple selectors
Firefox
descendant
general sibling (new to CSS3)
39. The 'internal' space between content area & border
id
block
padding
block
40. Two common pseudo-elements: ______ - first-line
descendant
16
first-letter
border: [width] [style] [color];
41. Two new box model properties in CSS3: border-radius and ________
box-shadow
min-width
clickable
descendant
42. #main>p{ font-size: 11pt; } is an example of a ______ selector
block
pseudo-class
zero out
child
43. To mark a rule so that it will override any other rules
collapsed
border: [width] [style] [color];
!important
child
44. h2~p { margin-left: 2em; } is an example of a ______ selector
RGBA
position (with values: left, center, right, top, center, bottom)
general sibling (new to CSS3)
Firefox
45. [ ] are indicative of _______ selectors
background: [color] [image] [repeat] [attachment] [position];
embedded styles
class (.)
attribute
46. HSL: Hue - Saturation - ______
type
visited
Lightness
reset
47. Three ways to specify colors in traditional CSS:color name - RGB - _______
Relative
:focus pseudo-class
#F9A
HEX code
48. _______ are predefined classes that apply to specific conditions
last
Pseudo-classes
box-shadow
external
49. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
ul{ list-style: none;}
type
!important
#F9A
50. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
block
http://html5shiv.googlecode.com/svn/trunk/html5.js
block
user style sheet