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