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 default width of an element:As wide as the ______ that contains it
RGBA
:focus pseudo-class
Nothing! the values are not comma separated (delimited)
block
2. [ ] are indicative of _______ selectors
block
-o-
href="<relative URL here>"
attribute
3. Wildcard (universal selector) to select all elements
*
class (.)
descendant
!important
4. h2~p { margin-left: 2em; } is an example of a ______ selector
multiple selectors
descendant
min-width
general sibling (new to CSS3)
5. HTML tag used for embedded styles
user style sheet
<style>
reset
RGBA
6. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
a:link{text-decoration: none;}
link
border: [width] [style] [color];
media
7. 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 ______
visited
Alpha
class
:focus pseudo-class
8. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
http://html5shiv.googlecode.com/svn/trunk/html5.js
first-letter
collapsed
type
9. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
attribute
Firefox
-o-
10. The 'internal' space between content area & border
box-shadow
multiple selectors
child
padding
11. The p.highlight selector is more _____ than the .highlight selector
#F9A
specific
*
comma (,)
12. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
padding
type
descendant
13. Prefix for linear gradient commands in Opera
media
pseudo-classes
-o-
em
14. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
block
pseudo-class
<li>
screen
15. What does this do? padding: 2px, 4px, 6px, 8px;
a:link{text-decoration: none;}
attribute selectors
Nothing! the values are not comma separated (delimited)
collapsed
16. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
background-image: linear-gradient(direction, color %, color %, ...);
position (with values: left, center, right, top, center, bottom)
min-width
height
17. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
Lightness
background-image: linear-gradient(direction, color %, color %, ...);
user style sheet
HEX code
18. 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
width
clickable
<style>
19. A rule to remove bullets from a list
padding
descendant
em
ul{ list-style: none;}
20. h1, h2, h3 {color: blue;} is an example of _____
Pseudo-classes
only-child
multiple selectors
Nothing! the values are not comma separated (delimited)
21. HSLA: Hue - Saturation - Lightness - _____
em
Alpha
collapsed
Nothing! the values are not comma separated (delimited)
22. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
<style>
height
only-child
23. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
embedded styles
general sibling (new to CSS3)
ul{ list-style: none;}
24. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
external
reset
link
Box Model
25. There are ____ descriptive color names
only-child
user style sheet
16
type
26. Prefix for linear gradient commands in Firefox
-webkit-
class
type
-moz-
27. Two new box model properties in CSS3: border-radius and ________
specific
box-shadow
background-image: linear-gradient(direction, color %, color %, ...);
http://html5shiv.googlecode.com/svn/trunk/html5.js
28. Prefix for linear gradient commands in Safari & Chrome
<style>
-webkit-
embedded styles
-moz-
29. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
min-width
padding
block
descendant
30. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
Box Model
box-shadow
href="<relative URL here>"
width
31. #main { padding: 1em;} is an example of a selector made by _____
box-shadow
Lightness
id
width
32. These 'flavors' of selectors are often used by JavaScript
block
Pseudo-elements
attribute selectors
pseudo-classes
33. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
border: [width] [style] [color];
height
media
Firefox
34. 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>)
RGBA
-moz-
background-image: linear-gradient(direction, color %, color %, ...);
35. h2+p { margin-top: .5em} is an example of a _____ selector
!important
adjacent sibling
zero out
em
36. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
background-image: linear-gradient(direction, color %, color %, ...);
specificity
descendant
http://html5shiv.googlecode.com/svn/trunk/html5.js
37. 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
Box Model
margin
clickable
38. Shorthand border syntax
background: [color] [image] [repeat] [attachment] [position];
link
descendant
border: [width] [style] [color];
39. ________ are selectors that let you select a portion of text
user style sheet
Pseudo-elements
<li>
#F9A
40. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
http://html5shiv.googlecode.com/svn/trunk/html5.js
id
class (.)
specificity
41. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
Box Model
box-shadow
zero out
first-letter
42. Rules with a higher _____ are the ones that will be used
Box Model
http://html5shiv.googlecode.com/svn/trunk/html5.js
specificity
<li>
43. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
specificity
16
adjacent sibling
embedded styles
44. Sequence in which styles are applied: _______ - embedded - inline
class (.)
position (with values: left, center, right, top, center, bottom)
href="<relative URL here>"
external
45. The 'external' space or 'force field' between an element & it's containing element
border: [width] [style] [color];
box-shadow
position (with values: left, center, right, top, center, bottom)
margin
46. Default for the media attribute
rel="stylesheet"
em
screen
pseudo-class
47. _____ measurements are recommended for font sizes
descendant
Relative
Firefox
block
48. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
width
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
-o-
collapsed
49. List alignments work best with ____ measurements
:focus pseudo-class
rel="stylesheet"
type
em
50. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
box-shadow
height
id