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. h2+p { margin-top: .5em} is an example of a _____ selector
border: [width] [style] [color];
height
pseudo-class
adjacent sibling
2. There are ____ descriptive color names
embedded styles
16
Lightness
ul{ list-style: none;}
3. Two new box model properties in CSS3: border-radius and ________
box-shadow
height
type
a img {border: none;}
4. The colon (:) is indicative of __________
pseudo-classes
specificity
first-letter
collapsed
5. Attribute for an external style sheet
media
rel="stylesheet"
clickable
Nothing! the values are not comma separated (delimited)
6. 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 ______
last
block
:focus pseudo-class
padding
7. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
type
box-shadow
border: [width] [style] [color];
attribute selectors
8. Keyword with 'background' that specifies if and how an image repeats
embedded styles
specific
clickable
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
9. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
adjacent sibling
min-width
class
10. List alignments work best with ____ measurements
only-child
em
border: [width] [style] [color];
pseudo-class
11. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
only-child
position (with values: left, center, right, top, center, bottom)
id
specific
12. Shorthand for background property
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
comma (,)
background: [color] [image] [repeat] [attachment] [position];
multiple selectors
13. A rule to remove bullets from a list
ul{ list-style: none;}
child
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Relative
14. Linear gradient syntax
padding
background-image: linear-gradient(direction, color %, color %, ...);
comma (,)
<style>
15. Shortcut HEX code for #FF99AA
#F9A
-o-
href="<relative URL here>"
formatting
16. HTML5 structural tags in older browsers must be styled as _____ elements
rel="stylesheet"
attribute
block
:focus pseudo-class
17. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
position (with values: left, center, right, top, center, bottom)
general sibling (new to CSS3)
border: [width] [style] [color];
type
18. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
descendant
pseudo-class
:focus pseudo-class
child
19. #main { padding: 1em;} is an example of a selector made by _____
formatting
first-letter
id
descendant
20. Tag used to bring CSS into a web page from an external source
block
height
ul{ list-style: none;}
link
21. Prefix for linear gradient commands in Safari & Chrome
id
-webkit-
user style sheet
last
22. border shorthand syntax
border: [width] [style] [color];
reset
Chrome & Safari
media
23. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
Pseudo-elements
Relative
specificity
24. _____ measurements are recommended for font sizes
-webkit-
!important
embedded styles
Relative
25. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
only-child
height
-webkit-
clickable
26. To mark a rule so that it will override any other rules
width
min-width
attribute
!important
27. HSL: Hue - Saturation - ______
Lightness
-moz-
screen
height
28. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
clickable
Firefox
box-shadow
-moz-
29. Default for the media attribute
type
reset
screen
pseudo-class
30. #main li { color: green;} is an example of a _____ selector
descendant
box-shadow
general sibling (new to CSS3)
border: [width] [style] [color];
31. A rule to remove a hyperlink border from around an image hyperlink
attribute selectors
a img {border: none;}
*
ul{ list-style: none;}
32. Three common CSS3 pseudo-classes: first-child - last-child - _______
:focus pseudo-class
Nothing! the values are not comma separated (delimited)
only-child
a img {border: none;}
33. The default width of an element:As wide as the ______ that contains it
padding
link
screen
block
34. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
HEX code
width
a:link{text-decoration: none;}
collapsed
35. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
link
Alpha
box-shadow
36. Attribute specifying the location of an external style sheet
href="<relative URL here>"
margin
border: [width] [style] [color];
box-shadow
37. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
embedded styles
reset
pseudo-class
id
38. HTML tag used for embedded styles
margin
descendant
<style>
#F9A
39. Rules with a higher _____ are the ones that will be used
a img {border: none;}
-webkit-
attribute
specificity
40. Sequence in which styles are applied: _______ - embedded - inline
box-shadow
zero out
min-width
external
41. HSLA: Hue - Saturation - Lightness - _____
Alpha
-webkit-
link
zero out
42. #main>p{ font-size: 11pt; } is an example of a ______ selector
http://html5shiv.googlecode.com/svn/trunk/html5.js
pseudo-classes
<li>
child
43. The 'external' space or 'force field' between an element & it's containing element
:focus pseudo-class
user style sheet
margin
RGBA
44. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
type
Nothing! the values are not comma separated (delimited)
a:link{text-decoration: none;}
http://html5shiv.googlecode.com/svn/trunk/html5.js
45. 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
general sibling (new to CSS3)
external
margin
width
46. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
embedded styles
-o-
general sibling (new to CSS3)
width
47. 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
a:link{text-decoration: none;}
attribute selectors
unordered (<ul>)
clickable
48. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
attribute
margin
padding
min-width
49. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
external
type
attribute
user style sheet
50. 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
a:link{text-decoration: none;}
last
Nothing! the values are not comma separated (delimited)
height