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