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