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