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