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