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. The p.highlight selector is more _____ than the .highlight selector
#F9A
specific
visited
border: [width] [style] [color];
2. Two new box model properties in CSS3: border-radius and ________
a:link{text-decoration: none;}
box-shadow
rel="stylesheet"
specificity
3. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
reset
pseudo-class
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
:focus pseudo-class
4. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
a:link{text-decoration: none;}
Chrome & Safari
Firefox
collapsed
5. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
a:link{text-decoration: none;}
border: [width] [style] [color];
width
6. border shorthand syntax
specific
!important
border: [width] [style] [color];
external
7. 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
user style sheet
unordered (<ul>)
:focus pseudo-class
adjacent sibling
8. Three common CSS3 pseudo-classes: first-child - last-child - _______
position (with values: left, center, right, top, center, bottom)
first-letter
comma (,)
only-child
9. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
10. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
#F9A
border: [width] [style] [color];
comma (,)
Firefox
11. 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
-o-
width
border: [width] [style] [color];
block
12. List alignments work best with ____ measurements
specificity
em
-webkit-
Relative
13. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
!important
visited
type
embedded styles
14. _____ measurements are recommended for font sizes
descendant
a img {border: none;}
Relative
type
15. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
border: [width] [style] [color];
height
user style sheet
HEX code
16. .right {text-align: right;} is an example of a selector made by _______
id
class
rel="stylesheet"
type
17. 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
Chrome & Safari
Nothing! the values are not comma separated (delimited)
zero out
clickable
18. HSLA: Hue - Saturation - Lightness - _____
rel="stylesheet"
border: [width] [style] [color];
Alpha
zero out
19. A rule to remove a hyperlink border from around an image hyperlink
http://html5shiv.googlecode.com/svn/trunk/html5.js
unordered (<ul>)
a img {border: none;}
link
20. Linear gradient syntax
background-image: linear-gradient(direction, color %, color %, ...);
external
#F9A
adjacent sibling
21. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
href="<relative URL here>"
user style sheet
Chrome & Safari
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
22. _______ are predefined classes that apply to specific conditions
width
Lightness
Pseudo-classes
clickable
23. Shortcut HEX code for #FF99AA
#F9A
ul{ list-style: none;}
min-width
id
24. h2~p { margin-left: 2em; } is an example of a ______ selector
rel="stylesheet"
box-shadow
general sibling (new to CSS3)
descendant
25. Tag used to bring CSS into a web page from an external source
class (.)
link
Alpha
first-letter
26. [ ] are indicative of _______ selectors
height
attribute
border: [width] [style] [color];
min-width
27. To mark a rule so that it will override any other rules
formatting
ul{ list-style: none;}
!important
class (.)
28. A rule to remove bullets from a list
em
Firefox
RGBA
ul{ list-style: none;}
29. Attribute specifying the location of an external style sheet
descendant
href="<relative URL here>"
screen
#F9A
30. The 'external' space or 'force field' between an element & it's containing element
padding
specificity
margin
screen
31. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
rel="stylesheet"
box-shadow
embedded styles
http://html5shiv.googlecode.com/svn/trunk/html5.js
32. Two common pseudo-elements: ______ - first-line
Relative
HEX code
position (with values: left, center, right, top, center, bottom)
first-letter
33. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
class (.)
formatting
reset
em
34. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
-o-
rel="stylesheet"
Box Model
35. Attribute for an external style sheet
zero out
*
rel="stylesheet"
position (with values: left, center, right, top, center, bottom)
36. Prefix for linear gradient commands in Opera
descendant
Nothing! the values are not comma separated (delimited)
-o-
link
37. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
user style sheet
<li>
background-image: linear-gradient(direction, color %, color %, ...);
38. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
em
Box Model
background: [color] [image] [repeat] [attachment] [position];
external
39. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
visited
class (.)
pseudo-class
pseudo-classes
40. Backwards compatibility for __________ & shadows -webkit-box-shadow
em
zero out
Nothing! the values are not comma separated (delimited)
Chrome & Safari
41. The delimiter symbol for multiple selectors for the same rule set
class
comma (,)
Box Model
visited
42. Three ways to code CSS3 colors: _____ - HSL - HSLA
RGBA
class (.)
Pseudo-classes
HEX code
43. h1, h2, h3 {color: blue;} is an example of _____
a img {border: none;}
pseudo-classes
multiple selectors
a:link{text-decoration: none;}
44. The default width of an element:As wide as the ______ that contains it
href="<relative URL here>"
block
width
type
45. #main { padding: 1em;} is an example of a selector made by _____
attribute
-moz-
Pseudo-elements
id
46. Sequence in which styles are applied: _______ - embedded - inline
http://html5shiv.googlecode.com/svn/trunk/html5.js
Lightness
class (.)
external
47. Default for the media attribute
screen
attribute selectors
pseudo-classes
*
48. Prefix for linear gradient commands in Safari & Chrome
height
attribute selectors
RGBA
-webkit-
49. CSS is a special language used just for _____
formatting
Nothing! the values are not comma separated (delimited)
type
child
50. Prefix for linear gradient commands in Firefox
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
border: [width] [style] [color];
unordered (<ul>)
-moz-