Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML review fall

Total questions: 18

Worksheet time: 9mins

Name
Class
Date
1.

Which of the following is a valid HTML tag?

a)

h1

b)

<>

c)

<h1>

d)

>h1<

2.

What does HTML stand for?

a)

Hidden Text Meta Language

b)

Hyper Text Markup Language

c)

Hidden Theme Markdown Level

d)

Hyper Text Markdown Language

3.

Which of the following is an example of metadata about a webpage?

a)

The title of the webpage

b)

The body of the webpage

c)

An <h1> tag on the webpage

d)

All of the above

4.

What is the function of the <br> tag?

a)

Create a line break on the resulting webpage

b)

Create a horizontal line on the resulting webpage

c)

Italicize text

d)

Bold text

5.

Which of the following is the correct HTML code to create a hyperlink that displays and links to google.com?

a)

<a href="https://google.com">

Click Me

</a>

b)

<a href="Click Me">

https://google.com

</a>

c)

Click Me <a>https://google.com</a>

d)

<a>

Click Me

</a href="https://google.com">

6.

Which of the following lines of HTML code will insert an image into a webpage?

a)

<img>

https://codehs.com/static/img/logo.png

</img>

b)

<img>

src="https://codehs.com/static/img/logo.png"

</img>

c)

<img src="https://codehs.com/static/img/logo.png">

d)

<img https://codehs.com/static/img/logo.png>

7.

Which of the following HTML code snippets would produce the following web page:

Apples Bananas Oranges

a)

<ul>

Apples

Bananas

Oranges

</ul>

b)

<ol>

Apples

Bananas

Oranges

</ol>

c)

<ul>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

</ul>

d)

<ol>

<li>Apples</li>

<li>Bananas</li>

<li>Oranges</li>

</ol>

8.

Which of the following tags defines a table row?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

9.

Which of the following tags defines a table header?

a)

<table>

b)

<tr>

c)

<th>

d)

<td>

10.

Which of the following HTML code snippets will generate the table?

a)

<table border="1">

<tr>

<th>Name</th>

<th>Score</th>

</tr>

<tr>

<td>Karel</td>

<td>32</td>

</tr>

</table>

b)

<table border="1">

<tr>

<td>Name</td>

<td>Score</td>

</tr>

<tr>

<td>Karel</td>

<td>32</td>

</tr>

</table>

c)

<table border="1">

<tr>

Name

Score

</tr>

<tr>

Karel

32

</tr>

</table>

d)

<table border="1">

<th>Name</th>

<th>Score</th>


<td>Karel</td>

<td>32</td>

</tr>

</table>

11.

Which of the following HTML code snippets is the proper way to set the background color of an <h1> tag to be blue?

a)

<blue>

<h1>Hello</h1>

</blue>

b)

<h1 background-color="blue">Hello</h1>

c)

<h1 style="blue">Hello</h1>

d)

<h1 style="background-color:blue;">Hello</h1>

12.

All of the colors you see on a computer screen are the result of a mixture of the same three colors. What are those colors?

a)

red, yellow, blue

b)

green, orange, purple

c)

red, green, blue

d)

red, green, yellow

13.

Which of the following is a valid color in HTML?

a)

“blue”

b)

“rgb(255, 0, 0)”

c)

“#00FF00”

d)

All of the above

14.

Why do we use CSS?

a)

HTML wasn’t intended to be able to style web pages, CSS allows us to add style

b)

Separate the content of a web page from the design of a web page

c)

Easily modify the look and feel of a web site even at a large scale

d)

All of the above

15.

Which of the following is a valid CSS rule?

a)

h1 {

color: blue;

}

b)

style="color:blue;"

c)

css="color:blue;"

d)

h1 {

color {

blue;

}

}

16.

Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?

a)

<img style="height:200px;">

b)

tag="img" {

height: 200px;

}

c)

img {

height: 200px;

}

d)

<img> {

height: 200px;

}

17.

Which of the following code snippets will select all HTML elements with the class “alert” and set their color to be red?

a)

alert {

color: red;

}

b)

.alert {

color: red;

}

c)

#alert {

color: red;

}

d)

class="alert" {

color: red;

}

18.

Which of the following CSS rules will select the HTML element with the id logo and set the font size for that element to 60 pixels?

a)

logo {

font-size: 60px;

}

b)

.logo {

font-size: 60px;

}

c)

#logo {

font-size: 60px;

}

d)

id="logo" {

font-size: 60px;

}