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