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. What does this do? padding: 2px, 4px, 6px, 8px;
external
Nothing! the values are not comma separated (delimited)
ul{ list-style: none;}
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
2. Prefix for linear gradient commands in Firefox
external
Alpha
-moz-
comma (,)
3. Rule to remove underlining in a hyperlink that hasn't yet been visited
first-letter
comma (,)
!important
a:link{text-decoration: none;}
4. 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
min-width
specific
general sibling (new to CSS3)
width
5. h2~p { margin-left: 2em; } is an example of a ______ selector
comma (,)
screen
zero out
general sibling (new to CSS3)
6. h1, h2, h3 {color: blue;} is an example of _____
HEX code
a:link{text-decoration: none;}
id
multiple selectors
7. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
position (with values: left, center, right, top, center, bottom)
attachment (with values of 'scroll' or 'fixed')
Relative
8. To mark a rule so that it will override any other rules
!important
pseudo-classes
class
clickable
9. Linear gradient syntax
pseudo-class
background-image: linear-gradient(direction, color %, color %, ...);
adjacent sibling
multiple selectors
10. The colon (:) is indicative of __________
zero out
pseudo-classes
em
reset
11. The delimiter symbol for multiple selectors for the same rule set
descendant
pseudo-class
Chrome & Safari
comma (,)
12. Default for the media attribute
specific
external
-o-
screen
13. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
-webkit-
link
zero out
class (.)
14. 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
background: [color] [image] [repeat] [attachment] [position];
comma (,)
<style>
clickable
15. A rule to remove a hyperlink border from around an image hyperlink
em
descendant
first-letter
a img {border: none;}
16. HTML5 structural tags in older browsers must be styled as _____ elements
child
background-image: linear-gradient(direction, color %, color %, ...);
:focus pseudo-class
block
17. There are ____ descriptive color names
padding
screen
16
Lightness
18. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. ________ are selectors that let you select a portion of text
block
Pseudo-elements
type
rel="stylesheet"
20. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
collapsed
#F9A
!important
first-letter
21. Prefix for linear gradient commands in Safari & Chrome
a img {border: none;}
width
specific
-webkit-
22. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
class (.)
box-shadow
general sibling (new to CSS3)
23. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
http://html5shiv.googlecode.com/svn/trunk/html5.js
min-width
height
Pseudo-classes
24. _______ are predefined classes that apply to specific conditions
specific
Pseudo-classes
box-shadow
HEX code
25. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
Lightness
general sibling (new to CSS3)
Pseudo-classes
26. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
-o-
16
descendant
<li>
27. #main { padding: 1em;} is an example of a selector made by _____
http://html5shiv.googlecode.com/svn/trunk/html5.js
id
zero out
16
28. Tag used to bring CSS into a web page from an external source
link
<li>
formatting
clickable
29. _____ measurements are recommended for font sizes
attribute
padding
Relative
Chrome & Safari
30. #main li { color: green;} is an example of a _____ selector
clickable
Chrome & Safari
min-width
descendant
31. 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
Lightness
zero out
child
ul{ list-style: none;}
32. border shorthand syntax
Pseudo-classes
margin
border: [width] [style] [color];
<style>
33. Rules with a higher _____ are the ones that will be used
specificity
background: [color] [image] [repeat] [attachment] [position];
embedded styles
comma (,)
34. Three common CSS3 pseudo-classes: first-child - last-child - _______
only-child
comma (,)
specific
position (with values: left, center, right, top, center, bottom)
35. Sequence in which styles are applied: _______ - embedded - inline
external
user style sheet
margin
border: [width] [style] [color];
36. .right {text-align: right;} is an example of a selector made by _______
class
first-letter
descendant
link
37. Keyword with 'background' that specifies if and how an image repeats
Pseudo-elements
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
attribute
external
38. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
*
visited
embedded styles
padding
39. The default width of an element:As wide as the ______ that contains it
href="<relative URL here>"
block
<li>
border: [width] [style] [color];
40. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
16
last
pseudo-class
-moz-
41. HSLA: Hue - Saturation - Lightness - _____
class (.)
Firefox
padding
Alpha
42. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
reset
adjacent sibling
border: [width] [style] [color];
width
43. 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 ______
box-shadow
background-image: linear-gradient(direction, color %, color %, ...);
last
:focus pseudo-class
44. CSS is a special language used just for _____
descendant
min-width
formatting
*
45. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
multiple selectors
width
:focus pseudo-class
attribute
46. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
Firefox
width
http://html5shiv.googlecode.com/svn/trunk/html5.js
Relative
47. 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
-o-
unordered (<ul>)
box-shadow
child
48. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
href="<relative URL here>"
specific
Box Model
HEX code
49. [ ] are indicative of _______ selectors
specificity
Chrome & Safari
attribute
Lightness
50. Backwards compatibility for __________ & shadows -webkit-box-shadow
embedded styles
attribute
descendant
Chrome & Safari