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. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
type
descendant
class
box-shadow
2. 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
HEX code
visited
Alpha
width
3. _______ are predefined classes that apply to specific conditions
Pseudo-classes
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
external
-webkit-
4. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
child
type
pseudo-class
screen
5. Default for the media attribute
background-image: linear-gradient(direction, color %, color %, ...);
screen
user style sheet
pseudo-class
6. The colon (:) is indicative of __________
pseudo-classes
multiple selectors
href="<relative URL here>"
zero out
7. These 'flavors' of selectors are often used by JavaScript
last
attribute selectors
width
specific
8. CSS is a special language used just for _____
formatting
!important
<li>
a:link{text-decoration: none;}
9. Shorthand for background property
background: [color] [image] [repeat] [attachment] [position];
child
attribute
:focus pseudo-class
10. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
width
border: [width] [style] [color];
http://html5shiv.googlecode.com/svn/trunk/html5.js
first-letter
11. Keyword with 'background' that specifies if and how an image repeats
pseudo-classes
rel="stylesheet"
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
16
12. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
collapsed
media
block
#F9A
13. Two common pseudo-elements: ______ - first-line
box-shadow
first-letter
a:link{text-decoration: none;}
collapsed
14. HSL: Hue - Saturation - ______
Box Model
background-image: linear-gradient(direction, color %, color %, ...);
Lightness
adjacent sibling
15. A rule to remove a hyperlink border from around an image hyperlink
<style>
class (.)
a img {border: none;}
RGBA
16. Shorthand border syntax
border: [width] [style] [color];
!important
adjacent sibling
link
17. #main>p{ font-size: 11pt; } is an example of a ______ selector
width
child
a img {border: none;}
-moz-
18. .right {text-align: right;} is an example of a selector made by _______
adjacent sibling
class
only-child
Relative
19. Prefix for linear gradient commands in Firefox
-moz-
Relative
reset
zero out
20. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<style>
zero out
Lightness
<li>
21. There are ____ descriptive color names
attachment (with values of 'scroll' or 'fixed')
multiple selectors
attribute selectors
16
22. 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
reset
child
unordered (<ul>)
class
23. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
-moz-
media
Box Model
:focus pseudo-class
24. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
Chrome & Safari
block
user style sheet
only-child
25. Prefix for linear gradient commands in Safari & Chrome
last
descendant
Pseudo-classes
-webkit-
26. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
link
background: [color] [image] [repeat] [attachment] [position];
embedded styles
Relative
27. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
attribute selectors
attachment (with values of 'scroll' or 'fixed')
width
border: [width] [style] [color];
28. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
16
ul{ list-style: none;}
comma (,)
29. 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
position (with values: left, center, right, top, center, bottom)
background: [color] [image] [repeat] [attachment] [position];
last
comma (,)
30. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
class (.)
<li>
margin
31. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
Box Model
border: [width] [style] [color];
box-shadow
rel="stylesheet"
32. HTML5 structural tags in older browsers must be styled as _____ elements
descendant
RGBA
media
block
33. Two new box model properties in CSS3: border-radius and ________
box-shadow
attribute
collapsed
clickable
34. Shortcut HEX code for #FF99AA
specific
visited
a img {border: none;}
#F9A
35. Three common CSS3 pseudo-classes: first-child - last-child - _______
16
only-child
comma (,)
Firefox
36. Linear gradient syntax
border: [width] [style] [color];
specific
background-image: linear-gradient(direction, color %, color %, ...);
!important
37. #main { padding: 1em;} is an example of a selector made by _____
descendant
id
min-width
child
38. What does this do? padding: 2px, 4px, 6px, 8px;
media
<style>
Relative
Nothing! the values are not comma separated (delimited)
39. 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 ______
descendant
RGBA
screen
:focus pseudo-class
40. Attribute for an external style sheet
-o-
block
Chrome & Safari
rel="stylesheet"
41. Sequence in which styles are applied: _______ - embedded - inline
ul{ list-style: none;}
external
href="<relative URL here>"
width
42. Attribute specifying the location of an external style sheet
href="<relative URL here>"
http://html5shiv.googlecode.com/svn/trunk/html5.js
border: [width] [style] [color];
pseudo-classes
43. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
44. ________ are selectors that let you select a portion of text
background: [color] [image] [repeat] [attachment] [position];
Pseudo-elements
clickable
-moz-
45. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
descendant
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
position (with values: left, center, right, top, center, bottom)
specific
46. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
only-child
Firefox
padding
Relative
47. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
class (.)
background-image: linear-gradient(direction, color %, color %, ...);
attribute
<li>
48. Rules with a higher _____ are the ones that will be used
specificity
a img {border: none;}
attribute
class
49. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
background: [color] [image] [repeat] [attachment] [position];
Lightness
class (.)
:focus pseudo-class
50. h2~p { margin-left: 2em; } is an example of a ______ selector
general sibling (new to CSS3)
width
-moz-
collapsed