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. Default for the media attribute
ul{ list-style: none;}
RGBA
Chrome & Safari
screen
2. 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
a img {border: none;}
Chrome & Safari
last
background: [color] [image] [repeat] [attachment] [position];
3. #main { padding: 1em;} is an example of a selector made by _____
id
background: [color] [image] [repeat] [attachment] [position];
last
specific
4. Rule to remove underlining in a hyperlink that hasn't yet been visited
a:link{text-decoration: none;}
-moz-
clickable
external
5. Keyword with 'background' that specifies whether an image scrolls with the document or remains in a fixed position
6. Shorthand border syntax
*
border: [width] [style] [color];
a img {border: none;}
!important
7. Six properties for setting heights & widths: width - height - ______- max-width - min-height - max-height
attribute selectors
external
min-width
link
8. ________ are selectors that let you select a portion of text
clickable
HEX code
Box Model
Pseudo-elements
9. The p.highlight selector is more _____ than the .highlight selector
href="<relative URL here>"
child
*
specific
10. To format the space between a bullet and text in an unordered list style some left padding on the _____ element within the list
first-letter
descendant
<li>
rel="stylesheet"
11. Shortcut HEX code for #FF99AA
#F9A
min-width
attachment (with values of 'scroll' or 'fixed')
screen
12. h2+p { margin-top: .5em} is an example of a _____ selector
adjacent sibling
Pseudo-elements
href="<relative URL here>"
formatting
13. The 'internal' space between content area & border
link
padding
a:link{text-decoration: none;}
-webkit-
14. Zeroing out the default browser styles using the wildcard selector (*) is often call using the _____ selector
external
attachment (with values of 'scroll' or 'fixed')
block
reset
15. CSS is a special language used just for _____
RGBA
adjacent sibling
general sibling (new to CSS3)
formatting
16. Three ways to provide styles: external style sheet - ________- style attributes applied to a single element (inline)
descendant
visited
embedded styles
<li>
17. .right {text-align: right;} is an example of a selector made by _______
embedded styles
padding
specificity
class
18. The ____ attribute is used to specify the platform that the style sheet is for (mobile - print etc)
pseudo-class
Nothing! the values are not comma separated (delimited)
media
ul{ list-style: none;}
19. The colon (:) is indicative of __________
multiple selectors
pseudo-classes
*
embedded styles
20. The 'external' space or 'force field' between an element & it's containing element
width
pseudo-classes
margin
width
21. box-shadow syntax: _________: horzOffset vertOffset blurRadius spread color; (not comma separated)
descendant
Firefox
Box Model
box-shadow
22. If a bottom margin encounters an adjacent top margin they are _____ and the larger margin is applied
pseudo-class
collapsed
background: [color] [image] [repeat] [attachment] [position];
-o-
23. There are ____ descriptive color names
position (with values: left, center, right, top, center, bottom)
em
padding
16
24. Prefix for linear gradient commands in Opera
attribute
-o-
external
position (with values: left, center, right, top, center, bottom)
25. These 'flavors' of selectors are often used by JavaScript
attribute selectors
-o-
Pseudo-elements
pseudo-class
26. Attribute specifying the location of an external style sheet
attribute
href="<relative URL here>"
block
!important
27. List alignments work best with ____ measurements
general sibling (new to CSS3)
-webkit-
rel="stylesheet"
em
28. * [ href ] { font-size: 95%; } is an example of a(n) _____ selector
attribute
*
attribute
background: [color] [image] [repeat] [attachment] [position];
29. Prefix for linear gradient commands in Safari & Chrome
-webkit-
border: [width] [style] [color];
id
attribute
30. 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 ______
*
link
:focus pseudo-class
Pseudo-elements
31. Use this 'flavor' of selector if you want to target multiple elements on a page with the same styling
box-shadow
link
class (.)
em
32. Five common CSS pseudo classes:link - _______ - active - hover - focus
box-shadow
visited
background: [color] [image] [repeat] [attachment] [position];
:focus pseudo-class
33. A rule to remove bullets from a list
attachment (with values of 'scroll' or 'fixed')
attribute
Lightness
ul{ list-style: none;}
34. An HTML element may be a selector (<p> for example). This is known as a rule that selects by ______
first-letter
Relative
type
reset
35. Two common pseudo-elements: ______ - first-line
class (.)
first-letter
comma (,)
width
36. Rules with a higher _____ are the ones that will be used
specificity
Pseudo-elements
border: [width] [style] [color];
only-child
37. #main>p{ font-size: 11pt; } is an example of a ______ selector
block
Nothing! the values are not comma separated (delimited)
child
Pseudo-classes
38. Wildcard (universal selector) to select all elements
Nothing! the values are not comma separated (delimited)
a img {border: none;}
<style>
*
39. h2~p { margin-left: 2em; } is an example of a ______ selector
pseudo-class
border: [width] [style] [color];
type
general sibling (new to CSS3)
40. Three ways to specify colors in traditional CSS:color name - RGB - _______
!important
Relative
HEX code
<style>
41. To mark a rule so that it will override any other rules
repeat (values: repeat, repeat-x, repeat-y, no-repeat)
!important
multiple selectors
zero out
42. _______ Memory Aid: TRBL ('trouble' = top, right, bottom, left)
ul{ list-style: none;}
Box Model
general sibling (new to CSS3)
-o-
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
a:link{text-decoration: none;}
type
zero out
multiple selectors
44. 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
width
clickable
screen
Pseudo-elements
45. Two new box model properties in CSS3: border-radius and ________
!important
box-shadow
width
href="<relative URL here>"
46. [ ] are indicative of _______ selectors
class
visited
attribute selectors
attribute
47. Attribute for an external style sheet
reset
rel="stylesheet"
collapsed
*
48. Shorthand for background property
class
padding
Nothing! the values are not comma separated (delimited)
background: [color] [image] [repeat] [attachment] [position];
49. A rule to remove a hyperlink border from around an image hyperlink
<style>
a img {border: none;}
descendant
screen
50. Tag used to bring CSS into a web page from an external source
last
link
background: [color] [image] [repeat] [attachment] [position];
a img {border: none;}