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