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