1. What does CSS stand for? |
Creative Style Sheets |
Computer Style Sheets |
Cascading Style Sheets |
Cascade Style Sheets
|
2. Where in an HTML document is the correct place to refer to an external style sheet? |
In the <body> section |
At the end of the document |
At the top of the document |
In the <head> section
|
3. Which HTML tag is used to define an internal style sheet? |
css |
text/style |
style |
script
|
4. Which HTML attribute is used to define inline styles? |
font |
styles |
css |
style
|
5. Which is the correct CSS syntax? |
body {color: black} |
body:color=black |
{body:color=black(body} |
{body;color:black}
|
6. How do you insert a comment in a CSS file? |
/* this is a comment */ |
' this is a comment |
// this is a comment // |
// this is a comment
|
7. Which property is used to change the background color? |
bgcolor |
background-color |
bacgground-color |
color:
|
8. How do you add a background color for all "<h1>" elements? |
all.h1 {background-color:#FFFFFF} |
h1.all {background-color:#FFFFFF} |
h1 {background-color:#FFFFFF} |
all.h{background-color:#FFFFFF}
|
9. How do you change the text color of an element? |
text-color: |
color: |
text-color= |
font-color:
|
10. Which CSS property controls the text size? |
font-style |
text-style |
font-size |
text-size
|
11. What is the correct CSS syntax for making all the <p> elements bold? |
p {text-size:bold} |
p {font-weight:bold} |
style:bold |
p{font:bold}
|
12. How do you display hyperlinks without an underline? |
a {decoration:no underline} |
a {text-decoration:no underline} |
a {underline:none} |
a {text-decoration:none}
|
13. How do you make each word in a text start with a capital letter? |
text-transform:uppercase |
text-transform:capitalize - correct answer |
You can't do that with CSS |
text-transform:capitalize
|
14. How do you change the font of an element? |
fon-face: |
font-family: |
f: |
font-style:
|
15. How do you make the text bold? |
font:b |
style:bold |
font-weight:bold |
font-style:
|
16. How do you display a border like this: The top border = 10 pixels, The bottom border = 5 pixels, The left border = 20 pixels, The right border = 1pixel? |
border-width:10px 20px 5px 1px |
border-width:10px 1px 5px 20px |
border-width:10px 5px 20px 1px |
border-width:5px 20px 10px 1px
|
17. How do you change the left margin of an element? |
padding: |
indent: |
margin: |
margin-left:
|
18. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values? |
Yes |
No |
|
|
19. How do you make a list that lists its items with squares? |
type: square |
list-style-type: square |
list-type: square |
style-list: square
|
20. What is the correct HTML for referring to an external style sheet? |
<link rel="stylesheet" type="text/css" href="mainstyle.css"> |
<style src="mainstyle.css"> |
<stylesheet>mainstyle.css</stylesheet> |
<link url="stylesheet" type="text/css" href="mainstyle.css">
|