SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
Lightness
#F9A
<li>
border: [width] [style] [color];
2. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
attribute selectors
height
-moz-
3. .right {text-align: right;} is an example of a selector made by _______
class
position (with values: left, center, right, top, center, bottom)
href="<relative URL here>"
padding
4. The delimiter symbol for multiple selectors for the same rule set
comma (,)
block
general sibling (new to CSS3)
box-shadow
5. HTML tag used for embedded styles
-webkit-
zero out
block
<style>
6. The default width of an element:As wide as the ______ that contains it
block
Nothing! the values are not comma separated (delimited)
box-shadow
visited
7. h2+p { margin-top: .5em} is an example of a _____ selector
background: [color] [image] [repeat] [attachment] [position];
class (.)
zero out
adjacent sibling
8. There are ____ descriptive color names
class
unordered (<ul>)
first-letter
16
9. 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
block
box-shadow
zero out
screen
10. HTML5 structural tags in older browsers must be styled as _____ elements
background: [color] [image] [repeat] [attachment] [position];
id
block
visited
11. #main li { color: green;} is an example of a _____ selector
attribute
min-width
descendant
specific
12. Two new box model properties in CSS3: border-radius and ________
pseudo-class
box-shadow
visited
specific
13. _____ measurements are recommended for font sizes
Relative
type
a img {border: none;}
!important
14. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
margin
attribute
-moz-
Relative
15. 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
position (with values: left, center, right, top, center, bottom)
first-letter
Nothing! the values are not comma separated (delimited)
clickable
16. HSLA: Hue - Saturation - Lightness - _____
Alpha
collapsed
link
<li>
17. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
collapsed
block
16
http://html5shiv.googlecode.com/svn/trunk/html5.js
18. To mark a rule so that it will override any other rules
16
rel="stylesheet"
!important
only-child
19. These 'flavors' of selectors are often used by JavaScript
margin
specific
attribute selectors
position (with values: left, center, right, top, center, bottom)
20. Backwards compatibility for __________ & shadows -webkit-box-shadow
border: [width] [style] [color];
ul{ list-style: none;}
Chrome & Safari
formatting
21. List alignments work best with ____ measurements
comma (,)
link
Pseudo-classes
em
22. Default for the media attribute
background: [color] [image] [repeat] [attachment] [position];
position (with values: left, center, right, top, center, bottom)
screen
href="<relative URL here>"
23. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
attribute selectors
http://html5shiv.googlecode.com/svn/trunk/html5.js
block
formatting
24. 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
Pseudo-classes
HEX code
box-shadow
25. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
border: [width] [style] [color];
Box Model
pseudo-class
screen
26. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
#F9A
type
only-child
<style>
27. Shorthand border syntax
clickable
block
border: [width] [style] [color];
-o-
28. HSL: Hue - Saturation - ______
href="<relative URL here>"
Lightness
a:link{text-decoration: none;}
media
29. #main { padding: 1em;} is an example of a selector made by _____
Alpha
collapsed
attribute
id
30. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
block
box-shadow
media
block
31. Three common CSS3 pseudo-classes: first-child - last-child - _______
-webkit-
Pseudo-elements
media
only-child
32. Sequence in which styles are applied: _______ - embedded - inline
descendant
<li>
rel="stylesheet"
external
33. Wildcard (universal selector) to select all elements
adjacent sibling
*
box-shadow
border: [width] [style] [color];
34. _______ are predefined classes that apply to specific conditions
Pseudo-classes
16
attribute
link
35. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
zero out
pseudo-classes
border: [width] [style] [color];
36. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
specificity
clickable
zero out
37. h1, h2, h3 {color: blue;} is an example of _____
descendant
multiple selectors
comma (,)
Alpha
38. ________ are selectors that let you select a portion of text
http://html5shiv.googlecode.com/svn/trunk/html5.js
Pseudo-elements
-moz-
a:link{text-decoration: none;}
39. The 'external' space or 'force field' between an element & it's containing element
http://html5shiv.googlecode.com/svn/trunk/html5.js
margin
-moz-
screen
40. Prefix for linear gradient commands in Opera
block
visited
-moz-
-o-
41. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
Alpha
user style sheet
zero out
multiple selectors
42. 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
width
padding
visited
HEX code
43. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
min-width
visited
comma (,)
!important
44. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
descendant
screen
formatting
height
45. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
external
Chrome & Safari
margin
46. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
general sibling (new to CSS3)
<style>
a:link{text-decoration: none;}
47. Tag used to bring CSS into a web page from an external source
-moz-
class (.)
href="<relative URL here>"
link
48. Linear gradient syntax
zero out
background-image: linear-gradient(direction, color %, color %, ...);
padding
id
49. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
last
box-shadow
Lightness
Box Model
50. A rule to remove a hyperlink border from around an image hyperlink
-webkit-
RGBA
a img {border: none;}
border: [width] [style] [color];