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