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