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