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. Tag used to bring CSS into a web page from an external source
link
box-shadow
http://html5shiv.googlecode.com/svn/trunk/html5.js
specificity
2. The 'external' space or 'force field' between an element & it's containing element
background-image: linear-gradient(direction, color %, color %, ...);
a:link{text-decoration: none;}
-webkit-
margin
3. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
*
border: [width] [style] [color];
reset
visited
4. 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
#F9A
clickable
user style sheet
box-shadow
5. Rules with a higher _____ are the ones that will be used
zero out
specificity
href="<relative URL here>"
width
6. _____ measurements are recommended for font sizes
embedded styles
reset
Relative
href="<relative URL here>"
7. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
user style sheet
class
attribute selectors
Relative
8. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
a img {border: none;}
pseudo-class
class (.)
block
9. A rule to remove a hyperlink border from around an image hyperlink
embedded styles
a img {border: none;}
box-shadow
<li>
10. ________ are selectors that let you select a portion of text
general sibling (new to CSS3)
*
Pseudo-elements
screen
11. h1, h2, h3 {color: blue;} is an example of _____
first-letter
Firefox
background: [color] [image] [repeat] [attachment] [position];
multiple selectors
12. Prefix for linear gradient commands in Opera
!important
first-letter
-o-
only-child
13. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
a:link{text-decoration: none;}
class (.)
type
collapsed
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 ______
-webkit-
:focus pseudo-class
box-shadow
specific
15. List alignments work best with ____ measurements
background-image: linear-gradient(direction, color %, color %, ...);
screen
HEX code
em
16. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
height
type
class (.)
first-letter
17. There are ____ descriptive color names
16
Pseudo-elements
reset
multiple selectors
18. CSS is a special language used just for _____
formatting
a:link{text-decoration: none;}
width
only-child
19. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
min-width
attribute selectors
user style sheet
20. 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
link
box-shadow
box-shadow
last
21. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
<style>
block
a img {border: none;}
22. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
reset
child
descendant
23. h2~p { margin-left: 2em; } is an example of a ______ selector
media
multiple selectors
Pseudo-elements
general sibling (new to CSS3)
24. The delimiter symbol for multiple selectors for the same rule set
id
comma (,)
min-width
box-shadow
25. 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
unordered (<ul>)
specificity
border: [width] [style] [color];
embedded styles
26. The 'internal' space between content area & border
a img {border: none;}
box-shadow
padding
min-width
27. Keyword with 'background' that specifies if and how an image repeats
external
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Nothing! the values are not comma separated (delimited)
link
28. Wildcard (universal selector) to select all elements
pseudo-class
screen
*
position (with values: left, center, right, top, center, bottom)
29. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
first-letter
only-child
multiple selectors
30. To mark a rule so that it will override any other rules
class
width
a img {border: none;}
!important
31. Two common pseudo-elements: ______ - first-line
collapsed
specific
first-letter
only-child
32. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
attachment (with values of 'scroll' or 'fixed')
external
embedded styles
pseudo-classes
33. Shorthand border syntax
media
border: [width] [style] [color];
ul{ list-style: none;}
attribute
34. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
child
position (with values: left, center, right, top, center, bottom)
attribute
first-letter
35. The p.highlight selector is more _____ than the .highlight selector
specific
:focus pseudo-class
zero out
background: [color] [image] [repeat] [attachment] [position];
36. .right {text-align: right;} is an example of a selector made by _______
min-width
class
Pseudo-classes
Firefox
37. Linear gradient syntax
min-width
width
background-image: linear-gradient(direction, color %, color %, ...);
box-shadow
38. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
:focus pseudo-class
a:link{text-decoration: none;}
attribute
-webkit-
39. [ ] are indicative of _______ selectors
attribute
ul{ list-style: none;}
position (with values: left, center, right, top, center, bottom)
descendant
40. HTML tag used for embedded styles
descendant
<li>
<style>
zero out
41. HTML5 structural tags in older browsers must be styled as _____ elements
type
multiple selectors
block
descendant
42. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
last
box-shadow
a img {border: none;}
Firefox
43. Prefix for linear gradient commands in Safari & Chrome
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
!important
box-shadow
-webkit-
44. #main li { color: green;} is an example of a _____ selector
!important
descendant
a img {border: none;}
clickable
45. Attribute for an external style sheet
:focus pseudo-class
rel="stylesheet"
Chrome & Safari
Pseudo-elements
46. These 'flavors' of selectors are often used by JavaScript
attribute selectors
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
adjacent sibling
last
47. Sequence in which styles are applied: _______ - embedded - inline
border: [width] [style] [color];
formatting
collapsed
external
48. #main>p{ font-size: 11pt; } is an example of a ______ selector
rel="stylesheet"
child
HEX code
screen
49. Default for the media attribute
screen
attachment (with values of 'scroll' or 'fixed')
padding
height
50. What does this do? padding: 2px, 4px, 6px, 8px;
attachment (with values of 'scroll' or 'fixed')
Nothing! the values are not comma separated (delimited)
id
Firefox