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