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