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