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. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
http://html5shiv.googlecode.com/svn/trunk/html5.js
Chrome & Safari
block
class
2. Three ways to specify colors in traditional CSS:color name - RGB - _______
collapsed
HEX code
attribute
comma (,)
3. HTML tag used for embedded styles
<style>
user style sheet
reset
width
4. A rule to remove bullets from a list
ul{ list-style: none;}
user style sheet
Alpha
type
5. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
Firefox
rel="stylesheet"
embedded styles
Lightness
6. Shortcut HEX code for #FF99AA
#F9A
user style sheet
position (with values: left, center, right, top, center, bottom)
attachment (with values of 'scroll' or 'fixed')
7. ________ are selectors that let you select a portion of text
-moz-
Pseudo-elements
-o-
:focus pseudo-class
8. #main>p{ font-size: 11pt; } is an example of a ______ selector
-moz-
child
ul{ list-style: none;}
background: [color] [image] [repeat] [attachment] [position];
9. Two new box model properties in CSS3: border-radius and ________
box-shadow
specific
height
min-width
10. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
RGBA
user style sheet
background-image: linear-gradient(direction, color %, color %, ...);
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
12. #main li { color: green;} is an example of a _____ selector
descendant
collapsed
em
box-shadow
13. 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
descendant
formatting
zero out
position (with values: left, center, right, top, center, bottom)
14. Shorthand for background property
Relative
background: [color] [image] [repeat] [attachment] [position];
ul{ list-style: none;}
pseudo-class
15. .right {text-align: right;} is an example of a selector made by _______
class
*
box-shadow
child
16. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
height
external
a:link{text-decoration: none;}
17. #main { padding: 1em;} is an example of a selector made by _____
block
background-image: linear-gradient(direction, color %, color %, ...);
id
user style sheet
18. Three common CSS3 pseudo-classes: first-child - last-child - _______
formatting
position (with values: left, center, right, top, center, bottom)
only-child
a img {border: none;}
19. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
-moz-
height
only-child
pseudo-classes
20. The default width of an element:As wide as the ______ that contains it
Alpha
border: [width] [style] [color];
class
block
21. HSL: Hue - Saturation - ______
-o-
a img {border: none;}
a:link{text-decoration: none;}
Lightness
22. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
attachment (with values of 'scroll' or 'fixed')
clickable
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
descendant
23. Attribute specifying the location of an external style sheet
href="<relative URL here>"
HEX code
general sibling (new to CSS3)
attribute selectors
24. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
descendant
box-shadow
formatting
#F9A
25. Three ways to code CSS3 colors: _____ - HSL - HSLA
pseudo-classes
collapsed
RGBA
a:link{text-decoration: none;}
26. Sequence in which styles are applied: _______ - embedded - inline
Alpha
external
adjacent sibling
a img {border: none;}
27. These 'flavors' of selectors are often used by JavaScript
padding
#F9A
attribute selectors
unordered (<ul>)
28. Wildcard (universal selector) to select all elements
adjacent sibling
box-shadow
*
descendant
29. The 'external' space or 'force field' between an element & it's containing element
Chrome & Safari
margin
box-shadow
link
30. There are ____ descriptive color names
#F9A
HEX code
16
Pseudo-elements
31. HSLA: Hue - Saturation - Lightness - _____
Alpha
type
:focus pseudo-class
specificity
32. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
comma (,)
-moz-
class (.)
Firefox
33. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
pseudo-classes
min-width
zero out
http://html5shiv.googlecode.com/svn/trunk/html5.js
34. HTML5 structural tags in older browsers must be styled as _____ elements
clickable
block
Relative
multiple selectors
35. border shorthand syntax
specificity
a img {border: none;}
border: [width] [style] [color];
class
36. The 'internal' space between content area & border
padding
margin
formatting
!important
37. To mark a rule so that it will override any other rules
width
!important
adjacent sibling
Firefox
38. Shorthand border syntax
class
block
-moz-
border: [width] [style] [color];
39. Backwards compatibility for __________ & shadows -webkit-box-shadow
a:link{text-decoration: none;}
specificity
em
Chrome & Safari
40. 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
padding
border: [width] [style] [color];
unordered (<ul>)
external
41. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
<li>
:focus pseudo-class
general sibling (new to CSS3)
attribute
42. 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
ul{ list-style: none;}
last
pseudo-class
border: [width] [style] [color];
43. 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
zero out
clickable
<li>
id
44. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
pseudo-class
width
reset
class (.)
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
width
adjacent sibling
specific
Box Model
46. Linear gradient syntax
ul{ list-style: none;}
-o-
border: [width] [style] [color];
background-image: linear-gradient(direction, color %, color %, ...);
47. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
attachment (with values of 'scroll' or 'fixed')
last
box-shadow
type
48. _______ are predefined classes that apply to specific conditions
formatting
Pseudo-classes
em
adjacent sibling
49. Keyword with 'background' that specifies if and how an image repeats
Firefox
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Lightness
comma (,)
50. Prefix for linear gradient commands in Opera
em
pseudo-class
-o-
formatting