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. Wildcard (universal selector) to select all elements
ul{ list-style: none;}
*
clickable
class
2. The 'internal' space between content area & border
-moz-
attribute
descendant
padding
3. Keyword with 'background' that specifies if and how an image repeats
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
Lightness
child
media
4. 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
external
min-width
last
em
5. _______ are predefined classes that apply to specific conditions
Firefox
multiple selectors
Pseudo-classes
zero out
6. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
Nothing! the values are not comma separated (delimited)
collapsed
position (with values: left, center, right, top, center, bottom)
width
7. 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
unordered (<ul>)
attachment (with values of 'scroll' or 'fixed')
adjacent sibling
attribute
8. Two new box model properties in CSS3: border-radius and ________
#F9A
margin
box-shadow
<style>
9. Attribute specifying the location of an external style sheet
padding
specific
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
href="<relative URL here>"
10. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
Nothing! the values are not comma separated (delimited)
<li>
attribute
position (with values: left, center, right, top, center, bottom)
11. Backwards compatibility for __________ & shadows -webkit-box-shadow
border: [width] [style] [color];
Chrome & Safari
link
first-letter
12. 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
media
-webkit-
min-width
width
13. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
Lightness
type
href="<relative URL here>"
clickable
14. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
width
class (.)
zero out
collapsed
15. h2+p { margin-top: .5em} is an example of a _____ selector
child
adjacent sibling
descendant
Box Model
16. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
zero out
http://html5shiv.googlecode.com/svn/trunk/html5.js
unordered (<ul>)
-webkit-
17. The delimiter symbol for multiple selectors for the same rule set
comma (,)
class
Firefox
attribute
18. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
min-width
Firefox
Chrome & Safari
embedded styles
19. Two common pseudo-elements: ______ - first-line
first-letter
comma (,)
class (.)
descendant
20. Default for the media attribute
type
specificity
width
screen
21. The colon (:) is indicative of __________
pseudo-classes
16
background: [color] [image] [repeat] [attachment] [position];
HEX code
22. 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
class (.)
Pseudo-elements
zero out
<style>
23. Sequence in which styles are applied: _______ - embedded - inline
Alpha
type
a img {border: none;}
external
24. The 'external' space or 'force field' between an element & it's containing element
margin
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
padding
block
25. ________ are selectors that let you select a portion of text
Pseudo-elements
visited
user style sheet
Nothing! the values are not comma separated (delimited)
26. 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 ______
unordered (<ul>)
:focus pseudo-class
width
box-shadow
27. To mark a rule so that it will override any other rules
rel="stylesheet"
attachment (with values of 'scroll' or 'fixed')
-moz-
!important
28. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
block
Firefox
Pseudo-elements
adjacent sibling
29. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
Alpha
margin
adjacent sibling
30. Prefix for linear gradient commands in Firefox
zero out
http://html5shiv.googlecode.com/svn/trunk/html5.js
adjacent sibling
-moz-
31. Prefix for linear gradient commands in Safari & Chrome
*
border: [width] [style] [color];
-webkit-
height
32. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
embedded styles
<li>
margin
16
33. [ ] are indicative of _______ selectors
zero out
attribute
visited
Alpha
34. _____ measurements are recommended for font sizes
<style>
Relative
block
position (with values: left, center, right, top, center, bottom)
35. Prefix for linear gradient commands in Opera
pseudo-class
only-child
external
-o-
36. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
first-letter
adjacent sibling
height
attribute
37. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
RGBA
box-shadow
class
href="<relative URL here>"
38. .right {text-align: right;} is an example of a selector made by _______
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
class
Pseudo-elements
screen
39. Shortcut HEX code for #FF99AA
#F9A
Relative
adjacent sibling
pseudo-classes
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
height
clickable
collapsed
Lightness
41. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
Box Model
width
*
box-shadow
42. What does this do? padding: 2px, 4px, 6px, 8px;
Nothing! the values are not comma separated (delimited)
attribute
Lightness
formatting
43. A rule to remove bullets from a list
ul{ list-style: none;}
last
*
Pseudo-elements
44. #main { padding: 1em;} is an example of a selector made by _____
external
id
child
pseudo-class
45. Rules with a higher _____ are the ones that will be used
HEX code
width
specificity
zero out
46. HSL: Hue - Saturation - ______
comma (,)
Lightness
class
HEX code
47. Shorthand border syntax
first-letter
border: [width] [style] [color];
href="<relative URL here>"
<li>
48. #main li { color: green;} is an example of a _____ selector
Relative
background-image: linear-gradient(direction, color %, color %, ...);
descendant
specific
49. 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
50. List alignments work best with ____ measurements
rel="stylesheet"
em
attribute selectors
Alpha