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