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