Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
1.
|
What is the correct HTML for referring to an external style sheet?
a. | <stylesheet>style.css</stylesheet> | c. | <link rel="stylesheet"
type="text/css" href="style.css"> | b. | <style
src="style.css"> |
|
|
2.
|
Which is the correct CSS syntax?
a. | body:color=black; | c. | body {color: black;} | b. | {body;color:black;} | d. | {body:color=black;} |
|
|
3.
|
Which HTML attribute is used to define inline styles?
a. | style | c. | class | b. | font | d. | styles |
|
|
4.
|
Which property is used to change the font of an element?
a. | font-style | c. | font-weight | b. | font-family |
|
|
5.
|
Which property is used to change the background color?
a. | color | c. | bgcolor | b. | background-color |
|
|
6.
|
Which CSS property is used to change the text color of an element?
a. | fgcolor | c. | text-color | b. | color |
|
|
7.
|
Which HTML tag is used to define an internal style sheet?
a. | <style> | c. | <css> | b. | <script> |
|
|
8.
|
What does CSS stand for?
a. | Colorful Style Sheets | c. | Cascading Style Sheets | b. | Computer Style
Sheets | d. | Creative Style
Sheets |
|
|
9.
|
What property is used to change the left margin of an element?
a. | indent | c. | padding-left | b. | margin-left |
|
|
10.
|
Where in an HTML document is the correct place to refer to an external style
sheet?
a. | In the <head> section | c. | At the end of the
document | b. | In the <body> section |
|