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