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