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