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