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