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