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