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