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. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
HEX code
<li>
id
a:link{text-decoration: none;}
2. Rules with a higher _____ are the ones that will be used
border: [width] [style] [color];
specificity
Pseudo-elements
unordered (<ul>)
3. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
unordered (<ul>)
Pseudo-elements
first-letter
4. [ ] are indicative of _______ selectors
class (.)
screen
attribute
height
5. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
reset
*
attribute selectors
clickable
6. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
<li>
collapsed
16
external
7. Sequence in which styles are applied: _______ - embedded - inline
margin
comma (,)
external
ul{ list-style: none;}
8. 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
last
a:link{text-decoration: none;}
width
specificity
9. 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"
formatting
:focus pseudo-class
comma (,)
10. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
first-letter
adjacent sibling
pseudo-class
Box Model
11. h2+p { margin-top: .5em} is an example of a _____ selector
reset
adjacent sibling
Box Model
media
12. To mark a rule so that it will override any other rules
!important
class (.)
border: [width] [style] [color];
visited
13. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
box-shadow
height
unordered (<ul>)
14. Keyword with 'background' that specifies the initial horizontal and vertical positions of an image
pseudo-class
block
position (with values: left, center, right, top, center, bottom)
zero out
15. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
width
user style sheet
specific
clickable
16. Default for the media attribute
padding
screen
background-image: linear-gradient(direction, color %, color %, ...);
comma (,)
17. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
class
descendant
descendant
pseudo-class
18. Three common CSS3 pseudo-classes: first-child - last-child - _______
background-image: linear-gradient(direction, color %, color %, ...);
<li>
only-child
Relative
19. The default width of an element:As wide as the ______ that contains it
:focus pseudo-class
block
a:link{text-decoration: none;}
em
20. 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
pseudo-class
#F9A
user style sheet
21. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
-webkit-
attribute
clickable
pseudo-classes
22. Two new box model properties in CSS3: border-radius and ________
box-shadow
attribute
media
:focus pseudo-class
23. Shortcut HEX code for #FF99AA
!important
comma (,)
Relative
#F9A
24. Prefix for linear gradient commands in Firefox
comma (,)
last
specificity
-moz-
25. HTML tag used for embedded styles
Firefox
adjacent sibling
comma (,)
<style>
26. The delimiter symbol for multiple selectors for the same rule set
attribute selectors
zero out
Chrome & Safari
comma (,)
27. Three ways to code CSS3 colors: _____ - HSL - HSLA
descendant
type
RGBA
border: [width] [style] [color];
28. HTML5 structural tags in older browsers must be styled as _____ elements
block
min-width
Lightness
attribute selectors
29. Two common pseudo-elements: ______ - first-line
collapsed
first-letter
block
multiple selectors
30. Attribute for an external style sheet
specificity
rel="stylesheet"
Relative
class
31. #main { padding: 1em;} is an example of a selector made by _____
id
class
class (.)
background-image: linear-gradient(direction, color %, color %, ...);
32. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
class (.)
Pseudo-elements
attribute selectors
Chrome & Safari
33. _______ are predefined classes that apply to specific conditions
Pseudo-classes
box-shadow
Box Model
height
34. Keyword with 'background' that specifies if and how an image repeats
formatting
HEX code
block
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
35. Shorthand border syntax
border: [width] [style] [color];
reset
media
<li>
36. h1, h2, h3 {color: blue;} is an example of _____
attribute
multiple selectors
<li>
width
37. Wildcard (universal selector) to select all elements
HEX code
margin
*
RGBA
38. h2~p { margin-left: 2em; } is an example of a ______ selector
block
general sibling (new to CSS3)
-webkit-
border: [width] [style] [color];
39. Linear gradient syntax
height
background-image: linear-gradient(direction, color %, color %, ...);
descendant
comma (,)
40. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
margin
last
media
adjacent sibling
41. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
descendant
margin
link
width
42. The 'external' space or 'force field' between an element & it's containing element
comma (,)
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
block
margin
43. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
box-shadow
specific
-o-
embedded styles
44. List alignments work best with ____ measurements
em
attribute
-moz-
pseudo-classes
45. Prefix for linear gradient commands in Opera
zero out
descendant
-o-
min-width
46. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
embedded styles
id
RGBA
http://html5shiv.googlecode.com/svn/trunk/html5.js
47. 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
clickable
height
child
Pseudo-elements
48. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
49. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
Alpha
box-shadow
margin
50. What does this do? padding: 2px, 4px, 6px, 8px;
Pseudo-elements
block
Nothing! the values are not comma separated (delimited)
HEX code