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. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
general sibling (new to CSS3)
collapsed
clickable
media
2. HSL: Hue - Saturation - ______
formatting
HEX code
padding
Lightness
3. Three ways to code CSS3 colors: _____ - HSL - HSLA
http://html5shiv.googlecode.com/svn/trunk/html5.js
multiple selectors
RGBA
em
4. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
clickable
height
rel="stylesheet"
external
5. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
class (.)
-o-
Box Model
width
6. Wildcard (universal selector) to select all elements
pseudo-classes
attribute
http://html5shiv.googlecode.com/svn/trunk/html5.js
*
7. Shortcut HEX code for #FF99AA
#F9A
RGBA
descendant
descendant
8. HSLA: Hue - Saturation - Lightness - _____
specific
padding
Alpha
first-letter
9. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
attribute
Firefox
Chrome & Safari
specificity
10. The colon (:) is indicative of __________
<li>
comma (,)
pseudo-classes
unordered (<ul>)
11. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Chrome & Safari
Pseudo-elements
attachment (with values of 'scroll' or 'fixed')
Box Model
12. 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
Relative
width
pseudo-class
comma (,)
13. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
ul{ list-style: none;}
class (.)
reset
14. Prefix for linear gradient commands in Opera
-o-
a img {border: none;}
block
ul{ list-style: none;}
15. The default width of an element:As wide as the ______ that contains it
-o-
16
background: [color] [image] [repeat] [attachment] [position];
block
16. Shorthand for background property
external
background: [color] [image] [repeat] [attachment] [position];
Box Model
pseudo-class
17. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
specificity
zero out
http://html5shiv.googlecode.com/svn/trunk/html5.js
position (with values: left, center, right, top, center, bottom)
18. HTML tag used for embedded styles
specificity
zero out
specific
<style>
19. [ ] are indicative of _______ selectors
<li>
attribute
collapsed
Nothing! the values are not comma separated (delimited)
20. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
pseudo-classes
block
a:link{text-decoration: none;}
21. The delimiter symbol for multiple selectors for the same rule set
comma (,)
margin
padding
only-child
22. There are ____ descriptive color names
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
16
Relative
Pseudo-elements
23. 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 ______
clickable
id
:focus pseudo-class
external
24. The 'external' space or 'force field' between an element & it's containing element
margin
only-child
-webkit-
Pseudo-elements
25. Prefix for linear gradient commands in Firefox
-moz-
type
margin
padding
26. 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
27. 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
zero out
rel="stylesheet"
href="<relative URL here>"
ul{ list-style: none;}
28. h1, h2, h3 {color: blue;} is an example of _____
multiple selectors
Alpha
HEX code
adjacent sibling
29. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
user style sheet
Firefox
box-shadow
30. List alignments work best with ____ measurements
clickable
background-image: linear-gradient(direction, color %, color %, ...);
em
pseudo-class
31. .right {text-align: right;} is an example of a selector made by _______
Lightness
multiple selectors
class (.)
class
32. h2~p { margin-left: 2em; } is an example of a ______ selector
adjacent sibling
:focus pseudo-class
Relative
general sibling (new to CSS3)
33. 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)
rel="stylesheet"
pseudo-class
screen
34. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
type
box-shadow
Pseudo-classes
35. Tag used to bring CSS into a web page from an external source
class (.)
zero out
attachment (with values of 'scroll' or 'fixed')
link
36. HTML5 structural tags in older browsers must be styled as _____ elements
background: [color] [image] [repeat] [attachment] [position];
class (.)
block
margin
37. Backwards compatibility for __________ & shadows -webkit-box-shadow
Chrome & Safari
descendant
block
adjacent sibling
38. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
:focus pseudo-class
Nothing! the values are not comma separated (delimited)
border: [width] [style] [color];
39. 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
pseudo-class
unordered (<ul>)
class (.)
*
40. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
pseudo-classes
class (.)
block
screen
41. Attribute for an external style sheet
pseudo-class
block
last
rel="stylesheet"
42. Default for the media attribute
a:link{text-decoration: none;}
<style>
*
screen
43. h2+p { margin-top: .5em} is an example of a _____ selector
specificity
Alpha
16
adjacent sibling
44. #main li { color: green;} is an example of a _____ selector
id
only-child
embedded styles
descendant
45. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
#F9A
class
descendant
46. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
pseudo-classes
Firefox
Nothing! the values are not comma separated (delimited)
min-width
47. A rule to remove a hyperlink border from around an image hyperlink
href="<relative URL here>"
padding
a img {border: none;}
unordered (<ul>)
48. 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
last
Alpha
-webkit-
formatting
49. A rule to remove bullets from a list
first-letter
collapsed
<style>
ul{ list-style: none;}
50. Linear gradient syntax
adjacent sibling
background-image: linear-gradient(direction, color %, color %, ...);
unordered (<ul>)
descendant