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