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