wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Basics Quiz

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

Which line correctly starts an HTML document?

a)

A. <DOCTYPE html>

b)

B. <!DOCTYP html>

c)

C. <!DOCTYPE html>

d)

D. <HTMLDOCTYPE>

2.

Which of the following is the correct way to centre text using inline CSS?

a)

A. <h1 text-align="center">Heading</h1>

b)

B. <h1 >Heading</h1>

c)

C. <h1 align="center">Heading</h1>

d)

D. <h1 >Heading</h1>

3.

What is wrong with this line of code?

<title>New Zealand<title>

a)

A. The title tag is not closed properly

b)

B. There should be no capital letters

c)

C. Title must be inside the body tag

d)

D. It needs quotation marks

4.

Which image tag is written correctly?

a)

A. <img src=newzealand.jpg width=700>

b)

B. <img src="newzealand.jpg" width="700px">

c)

C. <image source="newzealand.jpg" width="700px">

d)

D. <img link="newzealand.jpg" width=700>

5.

Which link is written correctly?

a)

A. <a link="australia.html">Click here</a>

b)

B. <a href="australia.html">Click here</a>

c)

C. <link="australia.html">Click here</link>

d)

D. <a="australia.html">Click here</a>

6.

What is the correct way to close a paragraph tag?

a)

A. <p/>

b)

B. </p>

c)

C. <p end>

d)

D. <para>

7.

Why is the DOCTYPE declaration important?

a)

A. It adds colour to the webpage

b)

B. It tells the browser what version of HTML to expect

c)

C. It contains the website’s title

d)

D. It defines the main content area