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. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
pseudo-classes
zero out
user style sheet
Firefox
2. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
embedded styles
<style>
last
height
3. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
Relative
width
attribute
class (.)
4. Two common pseudo-elements: ______ - first-line
first-letter
descendant
border: [width] [style] [color];
reset
5. HSLA: Hue - Saturation - Lightness - _____
child
pseudo-class
visited
Alpha
6. The default width of an element:As wide as the ______ that contains it
attribute
<li>
link
block
7. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
*
attribute
-moz-
Box Model
8. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
ul{ list-style: none;}
-webkit-
border: [width] [style] [color];
reset
9. 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
Chrome & Safari
Box Model
width
10. 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
attachment (with values of 'scroll' or 'fixed')
embedded styles
unordered (<ul>)
width
11. 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
attribute
box-shadow
screen
12. Shorthand border syntax
Pseudo-elements
background-image: linear-gradient(direction, color %, color %, ...);
border: [width] [style] [color];
block
13. Default for the media attribute
href="<relative URL here>"
screen
pseudo-classes
:focus pseudo-class
14. Three ways to specify colors in traditional CSS:color name - RGB - _______
Box Model
border: [width] [style] [color];
http://html5shiv.googlecode.com/svn/trunk/html5.js
HEX code
15. .right {text-align: right;} is an example of a selector made by _______
specificity
background-image: linear-gradient(direction, color %, color %, ...);
border: [width] [style] [color];
class
16. The 'external' space or 'force field' between an element & it's containing element
margin
em
only-child
embedded styles
17. 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
ul{ list-style: none;}
last
class (.)
unordered (<ul>)
18. _____ measurements are recommended for font sizes
child
formatting
Relative
user style sheet
19. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
general sibling (new to CSS3)
box-shadow
!important
screen
20. Three common CSS3 pseudo-classes: first-child - last-child - _______
*
background-image: linear-gradient(direction, color %, color %, ...);
external
only-child
21. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
multiple selectors
specific
width
block
22. border shorthand syntax
RGBA
link
border: [width] [style] [color];
child
23. Prefix for linear gradient commands in Firefox
-moz-
external
attribute selectors
Lightness
24. #main li { color: green;} is an example of a _____ selector
block
height
descendant
-moz-
25. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
embedded styles
visited
clickable
26. Attribute for an external style sheet
multiple selectors
rel="stylesheet"
em
specific
27. Two new box model properties in CSS3: border-radius and ________
#F9A
visited
HEX code
box-shadow
28. HSL: Hue - Saturation - ______
a:link{text-decoration: none;}
Lightness
attachment (with values of 'scroll' or 'fixed')
class
29. A rule to remove bullets from a list
margin
RGBA
class
ul{ list-style: none;}
30. What does this do? padding: 2px, 4px, 6px, 8px;
pseudo-classes
unordered (<ul>)
collapsed
Nothing! the values are not comma separated (delimited)
31. h1, h2, h3 {color: blue;} is an example of _____
block
ul{ list-style: none;}
id
multiple selectors
32. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
first-letter
formatting
media
height
33. Five common CSS pseudo classes:link - _______ - active - hover - focus
http://html5shiv.googlecode.com/svn/trunk/html5.js
clickable
HEX code
visited
34. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
position (with values: left, center, right, top, center, bottom)
!important
a:link{text-decoration: none;}
background: [color] [image] [repeat] [attachment] [position];
35. HTML tag used for embedded styles
Box Model
background-image: linear-gradient(direction, color %, color %, ...);
<style>
pseudo-classes
36. Tag used to bring CSS into a web page from an external source
width
first-letter
link
em
37. Shortcut HEX code for #FF99AA
ul{ list-style: none;}
specific
Pseudo-classes
#F9A
38. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
Firefox
a:link{text-decoration: none;}
http://html5shiv.googlecode.com/svn/trunk/html5.js
Lightness
39. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
box-shadow
external
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
40. Sequence in which styles are applied: _______ - embedded - inline
external
a img {border: none;}
<style>
-webkit-
41. Attribute specifying the location of an external style sheet
Nothing! the values are not comma separated (delimited)
a img {border: none;}
href="<relative URL here>"
border: [width] [style] [color];
42. CSS is a special language used just for _____
margin
16
pseudo-classes
formatting
43. Shorthand for background property
ul{ list-style: none;}
box-shadow
screen
background: [color] [image] [repeat] [attachment] [position];
44. Three ways to code CSS3 colors: _____ - HSL - HSLA
Pseudo-classes
RGBA
attribute
-webkit-
45. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
attribute selectors
type
border: [width] [style] [color];
attribute
46. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
reset
type
child
47. #main>p{ font-size: 11pt; } is an example of a ______ selector
Firefox
-webkit-
min-width
child
48. Keyword with 'background' that specifies if and how an image repeats
attribute selectors
zero out
width
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
49. #main { padding: 1em;} is an example of a selector made by _____
id
-o-
class (.)
Chrome & Safari
50. Linear gradient syntax
background-image: linear-gradient(direction, color %, color %, ...);
last
-o-
user style sheet