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