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