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