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