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