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