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