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. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
Chrome & Safari
!important
attachment (with values of 'scroll' or 'fixed')
2. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
href="<relative URL here>"
Nothing! the values are not comma separated (delimited)
HEX code
box-shadow
3. h2~p { margin-left: 2em; } is an example of a ______ selector
margin
box-shadow
general sibling (new to CSS3)
clickable
4. Rules with a higher _____ are the ones that will be used
min-width
class
box-shadow
specificity
5. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
clickable
Alpha
user style sheet
href="<relative URL here>"
6. The p.highlight selector is more _____ than the .highlight selector
screen
attribute
descendant
specific
7. HTML tag used for embedded styles
<style>
em
attachment (with values of 'scroll' or 'fixed')
Nothing! the values are not comma separated (delimited)
8. Wildcard (universal selector) to select all elements
padding
*
attachment (with values of 'scroll' or 'fixed')
child
9. The delimiter symbol for multiple selectors for the same rule set
comma (,)
-o-
Relative
-moz-
10. To mark a rule so that it will override any other rules
a img {border: none;}
screen
!important
block
11. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
collapsed
unordered (<ul>)
block
min-width
12. #main { padding: 1em;} is an example of a selector made by _____
attribute
attribute
id
-o-
13. Shorthand for background property
a img {border: none;}
Lightness
collapsed
background: [color] [image] [repeat] [attachment] [position];
14. Linear gradient syntax
background-image: linear-gradient(direction, color %, color %, ...);
pseudo-class
-webkit-
last
15. Three ways to code CSS3 colors: _____ - HSL - HSLA
attribute selectors
RGBA
-o-
descendant
16. 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
multiple selectors
pseudo-class
last
*
17. Two new box model properties in CSS3: border-radius and ________
-moz-
block
box-shadow
a img {border: none;}
18. These 'flavors' of selectors are often used by JavaScript
attribute selectors
user style sheet
border: [width] [style] [color];
Lightness
19. Attribute for an external style sheet
*
rel="stylesheet"
attribute
16
20. #main>p{ font-size: 11pt; } is an example of a ______ selector
em
pseudo-classes
media
child
21. 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
id
-moz-
width
box-shadow
22. Attribute specifying the location of an external style sheet
formatting
last
-o-
href="<relative URL here>"
23. #main li { color: green;} is an example of a _____ selector
link
border: [width] [style] [color];
descendant
attribute selectors
24. Keyword with 'background' that specifies if and how an image repeats
href="<relative URL here>"
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
descendant
Pseudo-elements
25. Prefix for linear gradient commands in Safari & Chrome
attachment (with values of 'scroll' or 'fixed')
:focus pseudo-class
-webkit-
a:link{text-decoration: none;}
26. border shorthand syntax
comma (,)
margin
border: [width] [style] [color];
multiple selectors
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 ______
general sibling (new to CSS3)
reset
:focus pseudo-class
16
28. Shorthand border syntax
border: [width] [style] [color];
position (with values: left, center, right, top, center, bottom)
clickable
a:link{text-decoration: none;}
29. 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
class
block
unordered (<ul>)
16
30. A rule to remove a hyperlink border from around an image hyperlink
width
a img {border: none;}
<style>
block
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
clickable
*
unordered (<ul>)
embedded styles
32. Shortcut HEX code for #FF99AA
border: [width] [style] [color];
#F9A
<style>
comma (,)
33. _______ are predefined classes that apply to specific conditions
general sibling (new to CSS3)
Firefox
min-width
Pseudo-classes
34. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
35. Prefix for linear gradient commands in Firefox
-moz-
-webkit-
http://html5shiv.googlecode.com/svn/trunk/html5.js
user style sheet
36. Rule to remove underlining in a hyperlink that hasn't yet been visited
background: [color] [image] [repeat] [attachment] [position];
type
block
a:link{text-decoration: none;}
37. h2+p { margin-top: .5em} is an example of a _____ selector
box-shadow
-webkit-
adjacent sibling
type
38. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
margin
em
position (with values: left, center, right, top, center, bottom)
adjacent sibling
39. Five common CSS pseudo classes:link - _______ - active - hover - focus
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
external
only-child
visited
40. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
reset
last
41. The colon (:) is indicative of __________
pseudo-classes
RGBA
rel="stylesheet"
#F9A
42. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
box-shadow
min-width
reset
*
43. _____ measurements are recommended for font sizes
block
Lightness
padding
Relative
44. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
embedded styles
block
#F9A
45. A rule to remove bullets from a list
ul{ list-style: none;}
a:link{text-decoration: none;}
clickable
-webkit-
46. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attachment (with values of 'scroll' or 'fixed')
href="<relative URL here>"
attribute
attribute
47. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
block
embedded styles
-moz-
Firefox
48. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
only-child
!important
formatting
class (.)
49. List alignments work best with ____ measurements
:focus pseudo-class
only-child
background: [color] [image] [repeat] [attachment] [position];
em
50. Prefix for linear gradient commands in Opera
-o-
a:link{text-decoration: none;}
class
HEX code