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. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
2. The p.highlight selector is more _____ than the .highlight selector
specific
descendant
min-width
unordered (<ul>)
3. Rule to remove underlining in a hyperlink that hasn't yet been visited
em
padding
embedded styles
a:link{text-decoration: none;}
4. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
height
adjacent sibling
reset
only-child
5. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
HEX code
min-width
formatting
Nothing! the values are not comma separated (delimited)
6. _______ are predefined classes that apply to specific conditions
ul{ list-style: none;}
collapsed
Pseudo-classes
<li>
7. These 'flavors' of selectors are often used by JavaScript
href="<relative URL here>"
-moz-
block
attribute selectors
8. Two new box model properties in CSS3: border-radius and ________
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
box-shadow
a img {border: none;}
attribute selectors
9. Prefix for linear gradient commands in Safari & Chrome
collapsed
height
HEX code
-webkit-
10. Backwards compatibility for __________ & shadows -webkit-box-shadow
box-shadow
Chrome & Safari
-webkit-
class
11. CSS is a special language used just for _____
height
background-image: linear-gradient(direction, color %, color %, ...);
formatting
rel="stylesheet"
12. HSL: Hue - Saturation - ______
margin
attribute
specificity
Lightness
13. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
attribute selectors
Lightness
descendant
border: [width] [style] [color];
14. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
class (.)
visited
box-shadow
:focus pseudo-class
15. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
<li>
width
embedded styles
specific
16. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
em
Firefox
type
pseudo-class
17. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
*
last
width
margin
18. HTML5 structural tags in older browsers must be styled as _____ elements
user style sheet
Pseudo-elements
block
box-shadow
19. A rule to remove a hyperlink border from around an image hyperlink
collapsed
last
em
a img {border: none;}
20. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
pseudo-classes
formatting
Chrome & Safari
Firefox
21. There are ____ descriptive color names
specificity
Firefox
16
type
22. The default width of an element:As wide as the ______ that contains it
last
-o-
block
unordered (<ul>)
23. A rule to remove bullets from a list
Firefox
ul{ list-style: none;}
-moz-
multiple selectors
24. 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 ______
border: [width] [style] [color];
16
:focus pseudo-class
comma (,)
25. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
href="<relative URL here>"
first-letter
a:link{text-decoration: none;}
26. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
Nothing! the values are not comma separated (delimited)
border: [width] [style] [color];
RGBA
27. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
box-shadow
id
zero out
collapsed
28. Linear gradient syntax
:focus pseudo-class
background: [color] [image] [repeat] [attachment] [position];
Lightness
background-image: linear-gradient(direction, color %, color %, ...);
29. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
block
<li>
<style>
class (.)
30. _____ measurements are recommended for font sizes
external
16
Relative
attribute
31. h2+p { margin-top: .5em} is an example of a _____ selector
zero out
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
adjacent sibling
HEX code
32. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
collapsed
type
specificity
33. HSLA: Hue - Saturation - Lightness - _____
external
rel="stylesheet"
descendant
Alpha
34. Prefix for linear gradient commands in Firefox
attribute
reset
descendant
-moz-
35. #main li { color: green;} is an example of a _____ selector
descendant
Relative
:focus pseudo-class
Firefox
36. Default for the media attribute
Lightness
screen
external
<li>
37. 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
block
unordered (<ul>)
<li>
reset
38. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
specific
pseudo-class
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
zero out
39. Keyword with 'background' that specifies if and how an image repeats
class (.)
box-shadow
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
http://html5shiv.googlecode.com/svn/trunk/html5.js
40. 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
-moz-
border: [width] [style] [color];
-webkit-
width
41. 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
*
type
zero out
child
42. h1, h2, h3 {color: blue;} is an example of _____
multiple selectors
block
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
attachment (with values of 'scroll' or 'fixed')
43. Shorthand for background property
16
link
-webkit-
background: [color] [image] [repeat] [attachment] [position];
44. #main { padding: 1em;} is an example of a selector made by _____
id
block
Chrome & Safari
Relative
45. Wildcard (universal selector) to select all elements
<li>
Chrome & Safari
16
*
46. Three common CSS3 pseudo-classes: first-child - last-child - _______
a:link{text-decoration: none;}
only-child
Alpha
Lightness
47. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
-o-
Relative
margin
user style sheet
48. #main>p{ font-size: 11pt; } is an example of a ______ selector
Box Model
link
formatting
child
49. Tag used to bring CSS into a web page from an external source
attribute
ul{ list-style: none;}
link
last
50. Prefix for linear gradient commands in Opera
specificity
reset
ul{ list-style: none;}
-o-