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