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