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