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