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. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
descendant
width
*
<li>
2. List alignments work best with ____ measurements
HEX code
height
rel="stylesheet"
em
3. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
em
Firefox
http://html5shiv.googlecode.com/svn/trunk/html5.js
-moz-
4. Backwards compatibility for __________ & shadows -webkit-box-shadow
Lightness
width
zero out
Chrome & Safari
5. Shorthand for background property
attribute
*
Firefox
background: [color] [image] [repeat] [attachment] [position];
6. The default width of an element:As wide as the ______ that contains it
Pseudo-classes
a img {border: none;}
margin
block
7. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
descendant
width
child
8. Rule to remove underlining in a hyperlink that hasn't yet been visited
ul{ list-style: none;}
adjacent sibling
a:link{text-decoration: none;}
descendant
9. 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
attribute
zero out
adjacent sibling
!important
10. HTML5 structural tags in older browsers must be styled as _____ elements
box-shadow
block
child
a:link{text-decoration: none;}
11. The colon (:) is indicative of __________
pseudo-classes
box-shadow
clickable
first-letter
12. These 'flavors' of selectors are often used by JavaScript
Chrome & Safari
min-width
attribute selectors
attribute
13. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
*
last
attachment (with values of 'scroll' or 'fixed')
14. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
zero out
general sibling (new to CSS3)
descendant
class
15. Linear gradient syntax
#F9A
background-image: linear-gradient(direction, color %, color %, ...);
Lightness
min-width
16. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
min-width
a:link{text-decoration: none;}
reset
specificity
17. border shorthand syntax
border: [width] [style] [color];
Box Model
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
position (with values: left, center, right, top, center, bottom)
18. HSL: Hue - Saturation - ______
a:link{text-decoration: none;}
Lightness
Pseudo-elements
padding
19. ________ are selectors that let you select a portion of text
Pseudo-elements
type
collapsed
em
20. 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
border: [width] [style] [color];
link
descendant
width
21. Shortcut HEX code for #FF99AA
height
href="<relative URL here>"
Nothing! the values are not comma separated (delimited)
#F9A
22. Prefix for linear gradient commands in Opera
Lightness
-o-
height
<style>
23. 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 ______
em
:focus pseudo-class
#F9A
embedded styles
24. 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
width
attribute
clickable
border: [width] [style] [color];
25. [ ] are indicative of _______ selectors
multiple selectors
collapsed
attribute
block
26. HSLA: Hue - Saturation - Lightness - _____
id
RGBA
margin
Alpha
27. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
child
visited
box-shadow
class (.)
28. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
specific
collapsed
a:link{text-decoration: none;}
block
29. Two new box model properties in CSS3: border-radius and ________
margin
box-shadow
attribute
comma (,)
30. Attribute for an external style sheet
<style>
rel="stylesheet"
collapsed
margin
31. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
Firefox
pseudo-classes
Lightness
position (with values: left, center, right, top, center, bottom)
32. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
a:link{text-decoration: none;}
-moz-
type
screen
33. Three common CSS3 pseudo-classes: first-child - last-child - _______
*
height
only-child
specific
34. Shorthand border syntax
border: [width] [style] [color];
last
Alpha
RGBA
35. Wildcard (universal selector) to select all elements
*
http://html5shiv.googlecode.com/svn/trunk/html5.js
link
background: [color] [image] [repeat] [attachment] [position];
36. Keyword with 'background' that specifies if and how an image repeats
attachment (with values of 'scroll' or 'fixed')
16
*
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
37. h1, h2, h3 {color: blue;} is an example of _____
media
-moz-
multiple selectors
last
38. Prefix for linear gradient commands in Firefox
Box Model
first-letter
-moz-
embedded styles
39. The p.highlight selector is more _____ than the .highlight selector
Pseudo-elements
specific
class
media
40. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
:focus pseudo-class
media
specificity
41. .right {text-align: right;} is an example of a selector made by _______
class
background-image: linear-gradient(direction, color %, color %, ...);
Pseudo-elements
HEX code
42. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
class (.)
Firefox
type
attribute selectors
43. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
RGBA
attribute
width
user style sheet
44. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
background-image: linear-gradient(direction, color %, color %, ...);
clickable
general sibling (new to CSS3)
box-shadow
45. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
last
pseudo-classes
media
pseudo-class
46. Prefix for linear gradient commands in Safari & Chrome
block
-webkit-
clickable
last
47. The 'internal' space between content area & border
attachment (with values of 'scroll' or 'fixed')
specific
padding
reset
48. There are ____ descriptive color names
16
type
block
user style sheet
49. The 'external' space or 'force field' between an element & it's containing element
Pseudo-elements
general sibling (new to CSS3)
padding
margin
50. Attribute specifying the location of an external style sheet
class (.)
min-width
href="<relative URL here>"
attribute selectors