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