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