SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
height
reset
class (.)
rel="stylesheet"
2. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
background-image: linear-gradient(direction, color %, color %, ...);
position (with values: left, center, right, top, center, bottom)
RGBA
padding
3. Backwards compatibility for ________ & rounded corners & shadows -moz-border-radius & -moz-box-shadow
Pseudo-elements
Firefox
rel="stylesheet"
Nothing! the values are not comma separated (delimited)
4. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
type
a img {border: none;}
padding
5. In a navigation bar (horizontal): Code <a> elements nested in <li> elements of an _____ list and style the <li> elements as inline using the display property
zero out
screen
descendant
unordered (<ul>)
6. Three ways to specify colors in traditional CSS:color name - RGB - _______
*
collapsed
HEX code
attribute
7. Attribute for an external style sheet
reset
-o-
Nothing! the values are not comma separated (delimited)
rel="stylesheet"
8. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
first-letter
<li>
#F9A
attribute selectors
9. These 'flavors' of selectors are often used by JavaScript
adjacent sibling
general sibling (new to CSS3)
:focus pseudo-class
attribute selectors
10. h2~p { margin-left: 2em; } is an example of a ______ selector
reset
general sibling (new to CSS3)
type
class
11. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
12. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
clickable
block
Firefox
type
13. A rule to remove bullets from a list
multiple selectors
media
Pseudo-classes
ul{ list-style: none;}
14. Default for the media attribute
background: [color] [image] [repeat] [attachment] [position];
class
screen
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
15. ________ are selectors that let you select a portion of text
screen
16
pseudo-class
Pseudo-elements
16. To mark a rule so that it will override any other rules
Chrome & Safari
!important
unordered (<ul>)
border: [width] [style] [color];
17. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
box-shadow
child
descendant
border: [width] [style] [color];
18. Tag used to bring CSS into a web page from an external source
link
rel="stylesheet"
pseudo-classes
screen
19. Backwards compatibility for __________ & shadows -webkit-box-shadow
class (.)
block
Chrome & Safari
block
20. Five common CSS pseudo classes:link - _______ - active - hover - focus
padding
min-width
margin
visited
21. There are ____ descriptive color names
width
embedded styles
16
margin
22. #main { padding: 1em;} is an example of a selector made by _____
id
Pseudo-elements
Chrome & Safari
pseudo-classes
23. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
child
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
pseudo-classes
24. The 'internal' space between content area & border
id
em
padding
16
25. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
Relative
href="<relative URL here>"
ul{ list-style: none;}
26. Keyword with 'background' that specifies if and how an image repeats
box-shadow
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
adjacent sibling
background-image: linear-gradient(direction, color %, color %, ...);
27. The 'external' space or 'force field' between an element & it's containing element
multiple selectors
link
position (with values: left, center, right, top, center, bottom)
margin
28. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
embedded styles
reset
box-shadow
multiple selectors
29. 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
width
link
#F9A
unordered (<ul>)
30. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
<li>
box-shadow
collapsed
background-image: linear-gradient(direction, color %, color %, ...);
31. Three ways to code CSS3 colors: _____ - HSL - HSLA
http://html5shiv.googlecode.com/svn/trunk/html5.js
specificity
a img {border: none;}
RGBA
32. The p.highlight selector is more _____ than the .highlight selector
specific
a:link{text-decoration: none;}
ul{ list-style: none;}
margin
33. [ ] are indicative of _______ selectors
position (with values: left, center, right, top, center, bottom)
attribute
only-child
em
34. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
background-image: linear-gradient(direction, color %, color %, ...);
Chrome & Safari
Relative
35. Three common CSS3 pseudo-classes: first-child - last-child - _______
only-child
a:link{text-decoration: none;}
clickable
height
36. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
<style>
RGBA
http://html5shiv.googlecode.com/svn/trunk/html5.js
media
37. h1, h2, h3 {color: blue;} is an example of _____
Chrome & Safari
multiple selectors
a:link{text-decoration: none;}
block
38. Two new box model properties in CSS3: border-radius and ________
screen
box-shadow
http://html5shiv.googlecode.com/svn/trunk/html5.js
background-image: linear-gradient(direction, color %, color %, ...);
39. Prefix for linear gradient commands in Safari & Chrome
http://html5shiv.googlecode.com/svn/trunk/html5.js
attribute
height
-webkit-
40. Shortcut HEX code for #FF99AA
#F9A
min-width
rel="stylesheet"
box-shadow
41. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
-o-
:focus pseudo-class
pseudo-class
block
42. HSLA: Hue - Saturation - Lightness - _____
HEX code
Alpha
http://html5shiv.googlecode.com/svn/trunk/html5.js
user style sheet
43. HSL: Hue - Saturation - ______
attribute
<style>
block
Lightness
44. 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
last
RGBA
<style>
embedded styles
45. A rule to remove a hyperlink border from around an image hyperlink
HEX code
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
a img {border: none;}
Pseudo-elements
46. Rule to remove underlining in a hyperlink that hasn't yet been visited
RGBA
type
attachment (with values of 'scroll' or 'fixed')
a:link{text-decoration: none;}
47. CSS is a special language used just for _____
formatting
external
HEX code
-o-
48. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
formatting
last
HEX code
Box Model
49. Prefix for linear gradient commands in Firefox
Nothing! the values are not comma separated (delimited)
-moz-
href="<relative URL here>"
Relative
50. Rules with a higher _____ are the ones that will be used
specificity
attachment (with values of 'scroll' or 'fixed')
user style sheet
padding