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 'external' space or 'force field' between an element & it's containing element
formatting
margin
attribute selectors
border: [width] [style] [color];
2. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
a img {border: none;}
Pseudo-classes
descendant
3. There are ____ descriptive color names
external
Relative
zero out
16
4. _______ are predefined classes that apply to specific conditions
pseudo-class
<style>
Pseudo-classes
general sibling (new to CSS3)
5. Rule to remove underlining in a hyperlink that hasn't yet been visited
visited
a:link{text-decoration: none;}
<style>
block
6. Two common pseudo-elements: ______ - first-line
first-letter
child
-webkit-
class
7. A rule to remove bullets from a list
ul{ list-style: none;}
general sibling (new to CSS3)
Alpha
clickable
8. HSLA: Hue - Saturation - Lightness - _____
em
Lightness
Alpha
Chrome & Safari
9. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
box-shadow
height
class (.)
Pseudo-classes
10. 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
HEX code
last
#F9A
-moz-
11. Default for the media attribute
screen
specific
box-shadow
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
12. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
background: [color] [image] [repeat] [attachment] [position];
width
border: [width] [style] [color];
media
13. To mark a rule so that it will override any other rules
padding
border: [width] [style] [color];
!important
attribute
14. HSL: Hue - Saturation - ______
Lightness
Relative
reset
Chrome & Safari
15. border shorthand syntax
href="<relative URL here>"
<li>
class
border: [width] [style] [color];
16. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
ul{ list-style: none;}
rel="stylesheet"
*
Firefox
17. .right {text-align: right;} is an example of a selector made by _______
embedded styles
descendant
<style>
class
18. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
rel="stylesheet"
formatting
RGBA
type
19. h2~p { margin-left: 2em; } is an example of a ______ selector
background-image: linear-gradient(direction, color %, color %, ...);
<style>
child
general sibling (new to CSS3)
20. Two new box model properties in CSS3: border-radius and ________
visited
height
border: [width] [style] [color];
box-shadow
21. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
ul{ list-style: none;}
attribute
descendant
child
22. #main>p{ font-size: 11pt; } is an example of a ______ selector
descendant
child
width
class
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 ______
:focus pseudo-class
general sibling (new to CSS3)
comma (,)
child
24. A rule to remove a hyperlink border from around an image hyperlink
Chrome & Safari
a img {border: none;}
background-image: linear-gradient(direction, color %, color %, ...);
ul{ list-style: none;}
25. h1, h2, h3 {color: blue;} is an example of _____
attribute
ul{ list-style: none;}
Pseudo-elements
multiple selectors
26. Backwards compatibility for __________ & shadows -webkit-box-shadow
block
rel="stylesheet"
Chrome & Safari
-moz-
27. Five common CSS pseudo classes:link - _______ - active - hover - focus
href="<relative URL here>"
external
link
visited
28. Prefix for linear gradient commands in Opera
comma (,)
margin
-o-
embedded styles
29. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
class (.)
descendant
embedded styles
zero out
30. The colon (:) is indicative of __________
descendant
formatting
pseudo-classes
collapsed
31. Linear gradient syntax
background-image: linear-gradient(direction, color %, color %, ...);
multiple selectors
attribute
general sibling (new to CSS3)
32. h2+p { margin-top: .5em} is an example of a _____ selector
link
adjacent sibling
id
descendant
33. The default width of an element:As wide as the ______ that contains it
user style sheet
class (.)
attribute
block
34. List alignments work best with ____ measurements
em
screen
descendant
<li>
35. Three common CSS3 pseudo-classes: first-child - last-child - _______
external
block
general sibling (new to CSS3)
only-child
36. HTML tag used for embedded styles
descendant
<style>
general sibling (new to CSS3)
attachment (with values of 'scroll' or 'fixed')
37. _____ measurements are recommended for font sizes
Box Model
Relative
attribute
Alpha
38. The 'internal' space between content area & border
-moz-
padding
position (with values: left, center, right, top, center, bottom)
zero out
39. [ ] are indicative of _______ selectors
<style>
only-child
embedded styles
attribute
40. The p.highlight selector is more _____ than the .highlight selector
width
specific
attribute
link
41. ________ are selectors that let you select a portion of text
http://html5shiv.googlecode.com/svn/trunk/html5.js
screen
Pseudo-elements
embedded styles
42. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
collapsed
Relative
Firefox
user style sheet
43. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
class (.)
background: [color] [image] [repeat] [attachment] [position];
:focus pseudo-class
position (with values: left, center, right, top, center, bottom)
44. HTML5 structural tags in older browsers must be styled as _____ elements
block
first-letter
pseudo-classes
href="<relative URL here>"
45. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
collapsed
http://html5shiv.googlecode.com/svn/trunk/html5.js
Box Model
specific
46. Sequence in which styles are applied: _______ - embedded - inline
attribute selectors
only-child
external
http://html5shiv.googlecode.com/svn/trunk/html5.js
47. Attribute for an external style sheet
first-letter
rel="stylesheet"
*
http://html5shiv.googlecode.com/svn/trunk/html5.js
48. #main { padding: 1em;} is an example of a selector made by _____
formatting
unordered (<ul>)
id
descendant
49. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
border: [width] [style] [color];
unordered (<ul>)
box-shadow
pseudo-class
50. Three ways to code CSS3 colors: _____ - HSL - HSLA
border: [width] [style] [color];
last
a img {border: none;}
RGBA