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. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
type
width
Firefox
http://html5shiv.googlecode.com/svn/trunk/html5.js
2. Prefix for linear gradient commands in Safari & Chrome
-webkit-
adjacent sibling
attribute
class (.)
3. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
general sibling (new to CSS3)
block
*
type
4. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
*
position (with values: left, center, right, top, center, bottom)
Box Model
child
5. Two new box model properties in CSS3: border-radius and ________
min-width
specific
rel="stylesheet"
box-shadow
6. The default width of an element:As wide as the ______ that contains it
padding
Pseudo-classes
block
media
7. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
last
<style>
Pseudo-classes
<li>
8. _____ measurements are recommended for font sizes
block
clickable
Relative
margin
9. ________ are selectors that let you select a portion of text
descendant
visited
Pseudo-elements
attachment (with values of 'scroll' or 'fixed')
10. List alignments work best with ____ measurements
id
em
last
adjacent sibling
11. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
a img {border: none;}
min-width
adjacent sibling
width
12. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
type
Chrome & Safari
class (.)
media
13. Shorthand border syntax
border: [width] [style] [color];
pseudo-class
attribute selectors
attribute
14. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
pseudo-class
collapsed
child
block
15. Attribute specifying the location of an external style sheet
href="<relative URL here>"
attribute
box-shadow
height
16. A rule to remove bullets from a list
border: [width] [style] [color];
first-letter
ul{ list-style: none;}
<style>
17. border shorthand syntax
only-child
media
border: [width] [style] [color];
class
18. Sequence in which styles are applied: _______ - embedded - inline
Firefox
external
id
16
19. HTML tag used for embedded styles
clickable
a:link{text-decoration: none;}
zero out
<style>
20. Two common pseudo-elements: ______ - first-line
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
first-letter
-moz-
Pseudo-classes
21. The 'internal' space between content area & border
Relative
padding
RGBA
Pseudo-classes
22. #main li { color: green;} is an example of a _____ selector
descendant
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
:focus pseudo-class
descendant
23. What does this do? padding: 2px, 4px, 6px, 8px;
multiple selectors
last
specific
Nothing! the values are not comma separated (delimited)
24. 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
25. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
rel="stylesheet"
last
min-width
embedded styles
26. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
RGBA
collapsed
class (.)
general sibling (new to CSS3)
27. HTML5 structural tags in older browsers must be styled as _____ elements
last
zero out
width
block
28. h2+p { margin-top: .5em} is an example of a _____ selector
block
pseudo-class
adjacent sibling
specificity
29. [ ] are indicative of _______ selectors
background-image: linear-gradient(direction, color %, color %, ...);
attribute
-moz-
ul{ list-style: none;}
30. HSL: Hue - Saturation - ______
reset
Lightness
height
href="<relative URL here>"
31. 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
16
attribute
width
em
32. Rule to remove underlining in a hyperlink that hasn't yet been visited
RGBA
-moz-
last
a:link{text-decoration: none;}
33. Five common CSS pseudo classes:link - _______ - active - hover - focus
external
visited
embedded styles
width
34. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
user style sheet
HEX code
Alpha
clickable
35. The p.highlight selector is more _____ than the .highlight selector
Chrome & Safari
width
block
specific
36. There are ____ descriptive color names
RGBA
zero out
16
:focus pseudo-class
37. HSLA: Hue - Saturation - Lightness - _____
Alpha
user style sheet
box-shadow
attribute
38. A rule to remove a hyperlink border from around an image hyperlink
a img {border: none;}
link
#F9A
http://html5shiv.googlecode.com/svn/trunk/html5.js
39. 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
specificity
block
ul{ list-style: none;}
40. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
pseudo-classes
id
class
Firefox
41. Three common CSS3 pseudo-classes: first-child - last-child - _______
href="<relative URL here>"
descendant
box-shadow
only-child
42. The colon (:) is indicative of __________
rel="stylesheet"
specific
zero out
pseudo-classes
43. The delimiter symbol for multiple selectors for the same rule set
media
attribute selectors
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
comma (,)
44. 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
Pseudo-elements
zero out
box-shadow
adjacent sibling
45. Backwards compatibility for __________ & shadows -webkit-box-shadow
RGBA
Chrome & Safari
first-letter
Nothing! the values are not comma separated (delimited)
46. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
collapsed
reset
href="<relative URL here>"
multiple selectors
47. Linear gradient syntax
Pseudo-classes
height
type
background-image: linear-gradient(direction, color %, color %, ...);
48. Prefix for linear gradient commands in Opera
-o-
specific
height
attachment (with values of 'scroll' or 'fixed')
49. _______ are predefined classes that apply to specific conditions
class
Pseudo-classes
<li>
min-width
50. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
border: [width] [style] [color];
attachment (with values of 'scroll' or 'fixed')
descendant
Pseudo-elements