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