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
min-width
a img {border: none;}
attachment (with values of 'scroll' or 'fixed')
-moz-
2. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
padding
-o-
<li>
border: [width] [style] [color];
3. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
min-width
child
Firefox
media
4. Two common pseudo-elements: ______ - first-line
height
descendant
first-letter
class (.)
5. Default for the media attribute
descendant
screen
<style>
external
6. The 'external' space or 'force field' between an element & it's containing element
<li>
visited
Chrome & Safari
margin
7. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
Pseudo-elements
pseudo-class
!important
user style sheet
8. 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
a:link{text-decoration: none;}
box-shadow
clickable
link
9. A rule to remove bullets from a list
-webkit-
ul{ list-style: none;}
screen
attribute
10. HSL: Hue - Saturation - ______
Alpha
Lightness
padding
formatting
11. 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>)
padding
child
#F9A
12. #main { padding: 1em;} is an example of a selector made by _____
#F9A
id
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Pseudo-classes
13. 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
descendant
visited
width
#F9A
14. Sequence in which styles are applied: _______ - embedded - inline
external
pseudo-classes
block
<style>
15. Attribute specifying the location of an external style sheet
<li>
id
href="<relative URL here>"
attribute selectors
16. h1, h2, h3 {color: blue;} is an example of _____
screen
link
multiple selectors
a:link{text-decoration: none;}
17. Three ways to code CSS3 colors: _____ - HSL - HSLA
RGBA
background-image: linear-gradient(direction, color %, color %, ...);
<style>
background: [color] [image] [repeat] [attachment] [position];
18. .right {text-align: right;} is an example of a selector made by _______
descendant
class
Alpha
height
19. Rule to remove underlining in a hyperlink that hasn't yet been visited
first-letter
em
height
a:link{text-decoration: none;}
20. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
id
descendant
external
<li>
21. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
margin
attribute
width
pseudo-class
22. The default width of an element:As wide as the ______ that contains it
border: [width] [style] [color];
background: [color] [image] [repeat] [attachment] [position];
block
external
23. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
:focus pseudo-class
href="<relative URL here>"
border: [width] [style] [color];
24. 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
reset
last
width
specificity
25. CSS is a special language used just for _____
specific
formatting
width
class
26. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
only-child
Firefox
HEX code
height
27. 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 ______
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
zero out
http://html5shiv.googlecode.com/svn/trunk/html5.js
:focus pseudo-class
28. To mark a rule so that it will override any other rules
!important
Chrome & Safari
class (.)
ul{ list-style: none;}
29. Wildcard (universal selector) to select all elements
*
border: [width] [style] [color];
#F9A
position (with values: left, center, right, top, center, bottom)
30. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
Lightness
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
adjacent sibling
collapsed
31. Backwards compatibility for __________ & shadows -webkit-box-shadow
http://html5shiv.googlecode.com/svn/trunk/html5.js
unordered (<ul>)
only-child
Chrome & Safari
32. Linear gradient syntax
id
background-image: linear-gradient(direction, color %, color %, ...);
embedded styles
background: [color] [image] [repeat] [attachment] [position];
33. List alignments work best with ____ measurements
em
border: [width] [style] [color];
-webkit-
width
34. Shorthand border syntax
unordered (<ul>)
em
border: [width] [style] [color];
height
35. border shorthand syntax
:focus pseudo-class
class
adjacent sibling
border: [width] [style] [color];
36. #main li { color: green;} is an example of a _____ selector
media
-moz-
descendant
Nothing! the values are not comma separated (delimited)
37. The colon (:) is indicative of __________
em
pseudo-classes
child
padding
38. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
Alpha
comma (,)
Nothing! the values are not comma separated (delimited)
box-shadow
39. Three common CSS3 pseudo-classes: first-child - last-child - _______
user style sheet
-moz-
only-child
descendant
40. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
box-shadow
pseudo-class
attribute selectors
Alpha
41. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
a:link{text-decoration: none;}
Alpha
class (.)
Pseudo-elements
42. Two new box model properties in CSS3: border-radius and ________
descendant
border: [width] [style] [color];
only-child
box-shadow
43. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
comma (,)
pseudo-classes
44. The p.highlight selector is more _____ than the .highlight selector
specific
Firefox
block
margin
45. The delimiter symbol for multiple selectors for the same rule set
box-shadow
child
comma (,)
user style sheet
46. Shortcut HEX code for #FF99AA
descendant
Box Model
#F9A
specific
47. HTML tag used for embedded styles
first-letter
box-shadow
#F9A
<style>
48. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
block
attribute
-moz-
49. 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
border: [width] [style] [color];
descendant
zero out
HEX code
50. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
embedded styles
last
clickable
:focus pseudo-class