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