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. Width of a box: left margin + left border + left padding + _____ + right padding + right border + right margin
#F9A
RGBA
descendant
width
2. #main { padding: 1em;} is an example of a selector made by _____
id
border: [width] [style] [color];
position (with values: left, center, right, top, center, bottom)
class (.)
3. The default width of an element:As wide as the ______ that contains it
margin
block
descendant
specificity
4. 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
HEX code
Alpha
first-letter
zero out
5. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
last
Firefox
attribute
Box Model
6. The 'internal' space between content area & border
attachment (with values of 'scroll' or 'fixed')
padding
screen
specific
7. The p.highlight selector is more _____ than the .highlight selector
specific
:focus pseudo-class
RGBA
width
8. _____ measurements are recommended for font sizes
Relative
general sibling (new to CSS3)
box-shadow
attribute
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. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
unordered (<ul>)
Box Model
Firefox
reset
11. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
rel="stylesheet"
embedded styles
class (.)
reset
12. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
block
:focus pseudo-class
type
position (with values: left, center, right, top, center, bottom)
13. Default for the media attribute
comma (,)
screen
external
pseudo-class
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
descendant
unordered (<ul>)
general sibling (new to CSS3)
ul{ list-style: none;}
15. #main>p{ font-size: 11pt; } is an example of a ______ selector
child
collapsed
Pseudo-classes
zero out
16. In order of most to least specificity by selector type: id, (class, attribute, _____), (element or pseudo-element)
block
pseudo-class
#F9A
embedded styles
17. Two common pseudo-elements: ______ - first-line
media
child
clickable
first-letter
18. h2+p { margin-top: .5em} is an example of a _____ selector
margin
Chrome & Safari
user style sheet
adjacent sibling
19. CSS is a special language used just for _____
min-width
only-child
formatting
HEX code
20. ________ are selectors that let you select a portion of text
position (with values: left, center, right, top, center, bottom)
Pseudo-elements
HEX code
comma (,)
21. Sequence in which styles are applied: _______ - embedded - inline
class (.)
padding
external
block
22. Three ways to specify colors in traditional CSS:color name - RGB - _______
HEX code
formatting
rel="stylesheet"
attribute selectors
23. What does this do? padding: 2px, 4px, 6px, 8px;
min-width
general sibling (new to CSS3)
Nothing! the values are not comma separated (delimited)
adjacent sibling
24. [ ] are indicative of _______ selectors
Chrome & Safari
attribute
ul{ list-style: none;}
-webkit-
25. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
http://html5shiv.googlecode.com/svn/trunk/html5.js
class (.)
class
height
26. Backwards compatibility for __________ & shadows -webkit-box-shadow
height
embedded styles
Chrome & Safari
class
27. These 'flavors' of selectors are often used by JavaScript
href="<relative URL here>"
link
attribute selectors
first-letter
28. #main li { color: green;} is an example of a _____ selector
descendant
position (with values: left, center, right, top, center, bottom)
reset
multiple selectors
29. There are ____ descriptive color names
16
zero out
block
min-width
30. Tag used to bring CSS into a web page from an external source
descendant
link
Alpha
first-letter
31. The 'external' space or 'force field' between an element & it's containing element
pseudo-class
last
box-shadow
margin
32. h2~p { margin-left: 2em; } is an example of a ______ selector
padding
general sibling (new to CSS3)
16
Pseudo-classes
33. 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
Alpha
min-width
descendant
width
34. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
border: [width] [style] [color];
min-width
media
rel="stylesheet"
35. Shortcut HEX code for #FF99AA
-moz-
box-shadow
#F9A
<style>
36. Height of a box: top margin + top border + top padding + ______ + bottom padding + bottom border + bottom margin
margin
height
user style sheet
-webkit-
37. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
last
id
min-width
href="<relative URL here>"
38. URL for bringing in a JavaScript 'shiv' or 'shim' for elements to be used in older browsers
attachment (with values of 'scroll' or 'fixed')
attribute
http://html5shiv.googlecode.com/svn/trunk/html5.js
multiple selectors
39. Linear gradient syntax
only-child
href="<relative URL here>"
collapsed
background-image: linear-gradient(direction, color %, color %, ...);
40. Four 'flavors' of relational selectors: ________ - adjacent sibling - child (not supported by some older browsers like IE6) - general sibling (new to CSS3)
descendant
descendant
user style sheet
padding
41. Keyword with 'background' that specifies if and how an image repeats
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
block
first-letter
child
42. 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 ______
:focus pseudo-class
formatting
href="<relative URL here>"
block
43. HSLA: Hue - Saturation - Lightness - _____
attribute selectors
Alpha
-webkit-
multiple selectors
44. Two new box model properties in CSS3: border-radius and ________
ul{ list-style: none;}
16
box-shadow
link
45. The colon (:) is indicative of __________
border: [width] [style] [color];
Lightness
pseudo-classes
ul{ list-style: none;}
46. Attribute for an external style sheet
rel="stylesheet"
#F9A
position (with values: left, center, right, top, center, bottom)
general sibling (new to CSS3)
47. Three common CSS3 pseudo-classes: first-child - last-child - _______
pseudo-classes
only-child
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
class (.)
48. HTML tag used for embedded styles
-webkit-
<style>
border: [width] [style] [color];
unordered (<ul>)
49. Wildcard (universal selector) to select all elements
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
comma (,)
box-shadow
*
50. A rule to remove bullets from a list
ul{ list-style: none;}
Lightness
class (.)
visited