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