Test questions
1) Which HTML element is used to link to an external style sheet?
— CHOOSE YOUR ANSWER —
<css>
<link>
<style>
<script>
all of the above
none of the above
2) Where in HTML code is the correct place for an internal style sheet?
— CHOOSE YOUR ANSWER —
At the beginning of the document
In the <head> section
In the <body> section
At the end of the document
all of the above
none of the above
3) Which CSS declaration results in bold text?
— CHOOSE YOUR ANSWER —
{font: b;}
{style: bold;}
{text: bold;}
{font-weight: bold;}
all of the above
none of the above
4) Which CSS rule results in <a> elements displaying without an underline?
— CHOOSE YOUR ANSWER —
a {underline: no-underline;}
a {text-decoration: none;}
a {text-decoration: no-underline;}
a {text-decoration: no;}
all of the above
none of the above
5) Which CSS rule places squares in front of list items?
— CHOOSE YOUR ANSWER —
li {type: square;}
li {list-style-type: box;}
li {list-type: square;}
li {style-list: square;}
all of the above
none of the above
6) Which CSS declaration is used to center text?
— CHOOSE YOUR ANSWER —
{center: true;}
{text-center: true;}
{align: center;}
{text-align: center;}
all of the above
none of the above
7) Which CSS property is used to change the background color of an element?
— CHOOSE YOUR ANSWER —
background-color
bg-color
backcolor
color
all of the above
none of the above
8) How do you insert a comment in a CSS stylesheet?
— CHOOSE YOUR ANSWER —
# this is a comment
/* this is a comment */
(( this is a comment
\this is a comment\
all of the above
none of the above
9) Can you use the same ID more than once in the same Web page?
— CHOOSE YOUR ANSWER —
yes
no
it depends on the weather
it depends on your mood
all of the above
none of the above
10) Can you use the same ID more than once in the same Web site?
— CHOOSE YOUR ANSWER —
yes
no
it depends on the weather
it depends on your mood
all of the above
none of the above
11) Which CSS rule is used to add a white background color to all h1 elements?
— CHOOSE YOUR ANSWER —
h1.all {background-color: #FFFFFF;}
all.h1 {background-color: #FFFFFF;}
h1 {background-color: #FFFFFF;}
h1.* {background-color: #FFFFFF;}
all of the above
none of the above
12) How do you insert a comment into HTML code?
— CHOOSE YOUR ANSWER —
<!-- this is a comment -->
<-- this is a comment -->
<- this is a comment ->
<\\ this is a comment \\>
all of the above
none of the above
13) Which CSS property controls the text size?
— CHOOSE YOUR ANSWER —
text-size
text-style
font-size
font-style
all of the above
none of the above
14) Which CSS property is used to change the text color of an element?
— CHOOSE YOUR ANSWER —
color
bgcolor
backcolor
background-color
all of the above
none of the above
15) Which HTML element can be a child of the <tr> element?
— CHOOSE YOUR ANSWER —
<table>
<tr>
<td>
<ul>
all of the above
none of the above
16) Which CSS property is used to define the space between words?
— CHOOSE YOUR ANSWER —
word-spacing
letter-spacing
white-space
text-indent
all of the above
none of the above
17) Which CSS declaration is used to make each word start with a capital letter?
— CHOOSE YOUR ANSWER —
{text-transform: capitalize;}
{text-transform: uppercase;}
{text-transform: first-letter;}
You can't do that with CSS
all of the above
none of the above
18) What does CSS stand for?
— CHOOSE YOUR ANSWER —
Cascading Style Sheets
Cozy Style Sheets
Computer Style Sheets
Common Style Sheets
all of the above
none of the above
19) Which CSS declaration is used to center text?
— CHOOSE YOUR ANSWER —
{center: true;}
{text-center: true;}
{align: center;}
{text-align: center;}
all of the above
none of the above
20) Which HTML element is used to define an internal style sheet?
— CHOOSE YOUR ANSWER —
<stylesheet>
<sheet>
<link>
<style>
all of the above
none of the above
21) Which CSS declaration is used to display a border with the following widths:
Top border = 10 pixels, bottom border = 5 pixels, left border = 20 pixels, right border = 1 pixel
— CHOOSE YOUR ANSWER —
{border-width: 10px 20px 5px 1px;}
{border-width: 10px 1px 5px 20px;}
{border-width: 5px 20px 10px 1px;}
{border-width: 10px 5px 20px 1px;}
all of the above
none of the above
22) Which CSS property is used to change the right margin of an element?
— CHOOSE YOUR ANSWER —
indent
margin-right
right-margin
right
all of the above
none of the above
23) What does HTML stand for?
— CHOOSE YOUR ANSWER —
Hyper Text Mini Language
Hyper Text Markup League
Happy Times Markup language
How To Make Lemonade
all of the above
none of the above
24) Which HTML attribute is used to define an inline style?
— CHOOSE YOUR ANSWER —
styling
stylesheet
sheet
style
all of the above
none of the above
25) Which of the following is NOT an HTML 5 element?
— CHOOSE YOUR ANSWER —
<body>
<h1>
<headline>
<nav>
all of the above
none of the above
Do not click the Submit button unless you have answered all questions, and you are sure of your answers!
You will not have a chance to go back once you submit this form.