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. There are ____ descriptive color names
formatting
16
margin
Lightness
2. h1, h2, h3 {color: blue;} is an example of _____
ul{ list-style: none;}
only-child
multiple selectors
block
3. Two common pseudo-elements: ______ - first-line
attribute
descendant
first-letter
only-child
4. HSLA: Hue - Saturation - Lightness - _____
class (.)
Pseudo-elements
Box Model
Alpha
5. #main>p{ font-size: 11pt; } is an example of a ______ selector
formatting
ul{ list-style: none;}
child
:focus pseudo-class
6. Wildcard (universal selector) to select all elements
*
adjacent sibling
user style sheet
formatting
7. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
background: [color] [image] [repeat] [attachment] [position];
box-shadow
Lightness
adjacent sibling
8. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
formatting
screen
box-shadow
9. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
position (with values: left, center, right, top, center, bottom)
media
Firefox
pseudo-class
10. h2+p { margin-top: .5em} is an example of a _____ selector
Firefox
adjacent sibling
href="<relative URL here>"
position (with values: left, center, right, top, center, bottom)
11. h2~p { margin-left: 2em; } is an example of a ______ selector
#F9A
adjacent sibling
attribute
general sibling (new to CSS3)
12. A rule to remove a hyperlink border from around an image hyperlink
attribute
specificity
a img {border: none;}
collapsed
13. Keyword with 'background' that specifies if and how an image repeats
a:link{text-decoration: none;}
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Chrome & Safari
user style sheet
14. These 'flavors' of selectors are often used by JavaScript
attribute selectors
first-letter
Lightness
external
15. Three ways to specify colors in traditional CSS:color name - RGB - _______
a:link{text-decoration: none;}
HEX code
Firefox
http://html5shiv.googlecode.com/svn/trunk/html5.js
16. Default for the media attribute
screen
formatting
Firefox
Nothing! the values are not comma separated (delimited)
17. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
http://html5shiv.googlecode.com/svn/trunk/html5.js
href="<relative URL here>"
ul{ list-style: none;}
clickable
18. 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
HEX code
background: [color] [image] [repeat] [attachment] [position];
general sibling (new to CSS3)
19. #main { padding: 1em;} is an example of a selector made by _____
embedded styles
id
height
specific
20. Prefix for linear gradient commands in Safari & Chrome
type
adjacent sibling
-webkit-
last
21. Three ways to code CSS3 colors: _____ - HSL - HSLA
a img {border: none;}
specific
rel="stylesheet"
RGBA
22. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
box-shadow
pseudo-class
collapsed
23. Tag used to bring CSS into a web page from an external source
link
border: [width] [style] [color];
a:link{text-decoration: none;}
unordered (<ul>)
24. The delimiter symbol for multiple selectors for the same rule set
border: [width] [style] [color];
link
comma (,)
!important
25. Shorthand border syntax
#F9A
Firefox
border: [width] [style] [color];
margin
26. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
Lightness
type
box-shadow
27. _____ measurements are recommended for font sizes
#F9A
specific
Relative
descendant
28. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
media
last
user style sheet
visited
29. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
collapsed
embedded styles
margin
a img {border: none;}
30. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
pseudo-class
background: [color] [image] [repeat] [attachment] [position];
user style sheet
collapsed
31. To mark a rule so that it will override any other rules
descendant
adjacent sibling
!important
Pseudo-classes
32. Prefix for linear gradient commands in Firefox
-moz-
Pseudo-elements
visited
block
33. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
Firefox
formatting
Chrome & Safari
34. 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 ______
first-letter
link
background-image: linear-gradient(direction, color %, color %, ...);
:focus pseudo-class
35. ________ are selectors that let you select a portion of text
attachment (with values of 'scroll' or 'fixed')
user style sheet
!important
Pseudo-elements
36. Sequence in which styles are applied: _______ - embedded - inline
attribute
height
-webkit-
external
37. Attribute for an external style sheet
Alpha
rel="stylesheet"
Pseudo-classes
class (.)
38. HTML5 structural tags in older browsers must be styled as _____ elements
a img {border: none;}
border: [width] [style] [color];
multiple selectors
block
39. The p.highlight selector is more _____ than the .highlight selector
specific
-moz-
id
position (with values: left, center, right, top, center, bottom)
40. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
http://html5shiv.googlecode.com/svn/trunk/html5.js
reset
*
HEX code
41. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
ul{ list-style: none;}
box-shadow
:focus pseudo-class
height
42. Three common CSS3 pseudo-classes: first-child - last-child - _______
box-shadow
ul{ list-style: none;}
width
only-child
43. CSS is a special language used just for _____
formatting
id
Nothing! the values are not comma separated (delimited)
background: [color] [image] [repeat] [attachment] [position];
44. HTML tag used for embedded styles
HEX code
link
<style>
last
45. Rules with a higher _____ are the ones that will be used
Nothing! the values are not comma separated (delimited)
block
specificity
adjacent sibling
46. 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
specificity
general sibling (new to CSS3)
Pseudo-elements
unordered (<ul>)
47. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
-webkit-
Relative
#F9A
48. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
margin
position (with values: left, center, right, top, center, bottom)
<style>
comma (,)
49. The 'internal' space between content area & border
:focus pseudo-class
a img {border: none;}
#F9A
padding
50. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
child
Nothing! the values are not comma separated (delimited)
type
ul{ list-style: none;}