wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Coding

Total questions: 30

Worksheet time: 18mins

Name
Class
Date
1.

Which of the following code is correct?

a)

<html><center><body>NAME</body></center><html>

b)

<html><body><center>NAME</body></body><center><html>

c)

<html><body>NAME</body></html>

d)

<html><body>NAME</body><html>

2.

HTML stands for

a)

Hypertext Modem Language.

b)

Hypertext Markup Language.

c)

Hypertext ModernLanguage.

d)

none of these is correct

3.

3 Parts of an HTML document include:

a)

the DTD, header and footer

b)

the DTD, header and body

c)

the DTD, body and footer

d)

none of these

4.

All HTML tags must be used in pairs.

a)

true

b)

false

5.

HTML tags usually appear:

a)

after any angle brackets (<>)

b)

before two angle brackets (< >)

c)

between two angle brackets (< >)

d)

none of these is correct

6.

The <H6> tag is used to create a:

a)

very large heading

b)

very small heading

7.

Which tag is used to create a bulleted list?

a)

<ol>

b)

<un>

c)

<bl>

d)

<ul>

8.

Which tag is used to create a numbered list?

a)

<ul>

b)

<ol>

c)

<nl>

d)

none of these

9.

To view the source code on a web page, ________________________ with your mouse on any web page and select .

a)

left click, View-Source Code

b)

right-click, View-Source Code

c)

click, HTML Coding

d)

none of these

10.

The <p> tag inserts paragraphs into an HTML document.

a)

true

b)

false

11.

Which will insert a line break?

a)

<LB>

b)

<BR>

c)

<LI>

d)

<LI>

12.

Which inserts a horizontal line?

a)

<HR>

b)

<HL>

c)

<LI>

d)

none of these

13.

Which of the following code is correct?

a)

<font color=BLUE></font>

b)

<font color="BLUE></font>

c)

<font color=BLUE><font>

d)

<font color="BLUE"></font>

14.

Which tag will add italics to the text?

a)

<strong>

b)

<li>

c)

<em>

d)

<i>

15.

What are the <p> tags in this code called?

<html><p>This is a new paragraph.</p></html>

a)

proper tags

b)

orphan tags

c)

nested tags

d)

none of these

16.

Which element contains the visible page content?

a)

<em>

b)

<title>

c)

<body>

d)

<color>

17.

A tag that only requires an starting or opening tag is called a(n):

a)

opening or closing tag

b)

orphan tag or empty tag

c)

nested tag

d)

none of these

18.

An instruction that further specifies a tag’s characteristics is called a(n):

a)

DTD

b)

hyperlink

c)

tag

d)

attribute

19.

In HTML coding, the ______________ link identifies what is clicked on and where the link takes the user

a)

anchor

b)

attribute

c)

element

d)

tagname

20.

Which is the correct HTML coding?

a)

<A HREF=http://www.google.com>google<A>

b)

<AHREF=http://www.google.com>google</A>

c)

<A HREF=http://www.google.com>google</A>

d)

<A HREF=http://www.google.com></A>

21.

What is the correct HTML for creating a hyperlink?

a)

<a name="http://www.w3schools.com">W3Schools.com</a>

b)

<a href="http://www.w3schools.com">W3Schools</a>

c)

<a url="http://www.w3schools.com">W3Schools.com</a>

d)

<a>http://www.w3schools.com</a>

22.

Which character is used to indicate an end tag?

a)

<

b)

>

c)

*

d)

/

23.

Which of the following are used to define the characteristics of an HTML element and is placed inside the element's opening tag?

a)

hypertext

b)

behavior

c)

attribute

d)

tag

24.

Which of the following will assign a background color of powder blue to your HTML document?

a)

<body style="background color:powder blue;">

b)

<body style=background-color:powderblue;>

c)

<body style="background-color:powderblue;">

d)

< style="background-color:powderblue;">

25.

When saving your HTML document, use the following extension:

a)

.doc

b)

.txt

c)

.htm

d)

.html

26.

Which of the following is the correct HTML code for assigning a font color to text?

a)

<p style="color:blue;">I am blue</p>

b)

<p style=color:blue>I am blue</p>

c)

<p style="color:blue;"I am blue</p>

d)

<p style="color:blue;">I am blue<p>

27.

When viewing your HTML document in a browser:

a)

right-click on the icon after you have saved your HTML file

b)

save your HTML file with a .html extension

c)

you may have to change to "all documents" to view the file after you have saved it

d)

you may have to do all of these to view your HTML doc successfully!

28.

Which of the following allows you to assign colors,

styles, and alignment to a page in HTML?

a)

code

b)

attribute

c)

parentheses

d)

none of these!

29.

Which of the following will insert a line on the page in an HTML document?

a)

<BR>

b)

<LI>

c)

</LI>

d)

<HR>

30.

Which of the following tags would you use to define important text on a webpage?

a)

<HR>

b)

<BR>

c)

<STRONG>

d)

<H6>