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