wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Unit Quiz

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

How does a browser know that a file is a webpage?

a)

It is opened in the browser

b)

The filename ends with .html

c)

It appears with a browser logo next to it

d)

It contains the <html></html> tag

2.

Which of the following is an improper set of HTML tags?

a)

<h1</h1>

b)

<p></p>

c)

<img />

d)

<ul><li></li></ul>

3.

Which of the following is not a proper table-related HTML tag?

a)

table

b)

tr

c)

tb

d)

td

4.

Which of the following tags will appear the smallest?

a)

h1

b)

h2

c)

h5

d)

h4

5.

Which of the following properly sets the src attribute?

a)

<a src="http://google.com">Google</a>

b)

<iframe src>http://weather.gov</iframe>

c)

<img src="http://image.com/image.jpg">

d)

<img>src="http://image.com/image.jpg"</img>

6.

What is wrong with the following code?


<a href="http://onbase.com"></a>

a)

The link will not appear, no text content

b)

The link will not go anywhere, improper href attribute

c)

The link is missing the src attribute

d)

The link has an unnecessary closing tag

7.

What is the relationship between the ul element and the li element?

a)

The ul is the child of the li

b)

The ul is the grandparent of the li

c)

The ul is a sibiling to the li

d)

the ul is the parent of the li

8.

How will the following input element appear on the webpage?


<input type="range">

a)

A text box

b)

A checkbox

c)

A slider

d)

A radio button

9.

How would you create a large, multi-line textbox input in HTML?

a)

<input type="textbox">

b)

<textarea></textarea>

c)

<input type="textarea">

d)

<textarea type="text">

10.

Which attribute tells an iframe which website to display?

a)

src

b)

href

c)

height

d)

window

11.

What is the relationship between the td and the table elements?

a)

The td is the child of the table

b)

The td is the cousin of the table

c)

The td is the grandparent of the table

d)

The td is the grandchild of the table