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