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. Two new box model properties in CSS3: border-radius and ________
block
<li>
attribute selectors
box-shadow
2. h1, h2, h3 {color: blue;} is an example of _____
multiple selectors
block
href="<relative URL here>"
attribute
3. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
media
formatting
attribute selectors
descendant
4. Prefix for linear gradient commands in Firefox
HEX code
href="<relative URL here>"
-moz-
16
5. Default for the media attribute
width
position (with values: left, center, right, top, center, bottom)
screen
http://html5shiv.googlecode.com/svn/trunk/html5.js
6. To mark a rule so that it will override any other rules
-webkit-
!important
#F9A
attribute
7. Rule to remove underlining in a hyperlink that hasn't yet been visited
box-shadow
a:link{text-decoration: none;}
embedded styles
-webkit-
8. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
multiple selectors
media
attribute
width
9. #main { padding: 1em;} is an example of a selector made by _____
first-letter
embedded styles
:focus pseudo-class
id
10. [ ] are indicative of _______ selectors
padding
<style>
#F9A
attribute
11. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
reset
link
unordered (<ul>)
box-shadow
12. List alignments work best with ____ measurements
screen
em
Pseudo-elements
block
13. 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
em
clickable
!important
type
14. HSLA: Hue - Saturation - Lightness - _____
Chrome & Safari
href="<relative URL here>"
Alpha
-o-
15. A rule to remove a hyperlink border from around an image hyperlink
embedded styles
box-shadow
Pseudo-classes
a img {border: none;}
16. Prefix for linear gradient commands in Opera
-o-
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
attribute selectors
user style sheet
17. The 'external' space or 'force field' between an element & it's containing element
width
min-width
background: [color] [image] [repeat] [attachment] [position];
margin
18. 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
background-image: linear-gradient(direction, color %, color %, ...);
unordered (<ul>)
Nothing! the values are not comma separated (delimited)
attachment (with values of 'scroll' or 'fixed')
19. Rules with a higher _____ are the ones that will be used
specificity
background-image: linear-gradient(direction, color %, color %, ...);
attachment (with values of 'scroll' or 'fixed')
Chrome & Safari
20. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
pseudo-class
margin
position (with values: left, center, right, top, center, bottom)
href="<relative URL here>"
21. Sequence in which styles are applied: _______ - embedded - inline
width
specific
href="<relative URL here>"
external
22. 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
a:link{text-decoration: none;}
margin
media
23. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
specific
http://html5shiv.googlecode.com/svn/trunk/html5.js
link
background: [color] [image] [repeat] [attachment] [position];
24. Some users with special needs may have set up a ______ which have a higher ranking in the 'cascade'
user style sheet
external
<li>
border: [width] [style] [color];
25. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
general sibling (new to CSS3)
multiple selectors
min-width
class (.)
26. The p.highlight selector is more _____ than the .highlight selector
:focus pseudo-class
a img {border: none;}
pseudo-class
specific
27. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
width
attribute
descendant
border: [width] [style] [color];
28. Shorthand for background property
zero out
width
background: [color] [image] [repeat] [attachment] [position];
a img {border: none;}
29. .right {text-align: right;} is an example of a selector made by _______
Pseudo-classes
RGBA
class
Pseudo-elements
30. Tag used to bring CSS into a web page from an external source
attribute
HEX code
general sibling (new to CSS3)
link
31. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
box-shadow
Chrome & Safari
collapsed
-moz-
32. 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
Chrome & Safari
background-image: linear-gradient(direction, color %, color %, ...);
Relative
33. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
Nothing! the values are not comma separated (delimited)
height
type
16
34. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. h2+p { margin-top: .5em} is an example of a _____ selector
border: [width] [style] [color];
attribute
adjacent sibling
HEX code
36. The delimiter symbol for multiple selectors for the same rule set
href="<relative URL here>"
comma (,)
border: [width] [style] [color];
<style>
37. Linear gradient syntax
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
external
a:link{text-decoration: none;}
background-image: linear-gradient(direction, color %, color %, ...);
38. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
descendant
border: [width] [style] [color];
-o-
attachment (with values of 'scroll' or 'fixed')
39. Attribute for an external style sheet
Chrome & Safari
rel="stylesheet"
:focus pseudo-class
box-shadow
40. Attribute specifying the location of an external style sheet
embedded styles
href="<relative URL here>"
Box Model
formatting
41. Five common CSS pseudo classes:link - _______ - active - hover - focus
visited
href="<relative URL here>"
16
embedded styles
42. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
<li>
comma (,)
Relative
Firefox
43. _____ measurements are recommended for font sizes
Relative
-webkit-
http://html5shiv.googlecode.com/svn/trunk/html5.js
screen
44. A rule to remove bullets from a list
ul{ list-style: none;}
block
rel="stylesheet"
attribute
45. _______ are predefined classes that apply to specific conditions
border: [width] [style] [color];
background: [color] [image] [repeat] [attachment] [position];
Pseudo-classes
-moz-
46. The default width of an element:As wide as the ______ that contains it
Lightness
visited
block
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
47. Three ways to code CSS3 colors: _____ - HSL - HSLA
RGBA
link
attribute selectors
-o-
48. h2~p { margin-left: 2em; } is an example of a ______ selector
-webkit-
class
general sibling (new to CSS3)
<li>
49. #main li { color: green;} is an example of a _____ selector
RGBA
descendant
zero out
visited
50. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
media
unordered (<ul>)
collapsed
Alpha