Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Test Practice

Total questions: 36

Worksheet time: 40mins

Name
Class
Date
1.

1. What does HTML stand for?

a)

Hierarchy Table-Matrix Language

b)

Hyper Text Markup Language

c)

Hyperlink Text Markup Language

d)

Hardware Technology Machine Language

2.

Who is responsible for creating the web standards?

a)

Microsoft

b)

Google

c)

The World Wide Web Consortium

d)

The United Nations Internet Sub-Committee

3.

Which of the following HTML elements represents the largest heading?

a)

<h1>

b)

<h6>

c)

<head>

d)

<heading>

4.

<body> means...

a)

Defines a document to be HTML5

b)

The root element of an HTML document.

c)

Defines a section

d)

All content visible on the page is in this tag

5.

<html> means

a)

Defines a document to be HTML5

b)

The root element of an HTML document.

c)

Titles the document

d)

All content visible on the page is in this tag

6.

<!DOCTYPE html> means

a)

Defines a document to be HTML5

b)

The root element of an HTML document.

c)

Titles the document

d)

All content visible on the page is in this tag

7.

<br> means

a)

Defines a line break

b)

Defines a paragraph

c)

Titles the document

d)

Defines a section

8.

<div> means

a)

Defines a line break

b)

Defines a paragraph

c)

Titles the document

d)

Defines a section

9.

<p> means

a)

Defines a line break

b)

Defines a paragraph

c)

Titles the document

d)

Defines a section

10.

<title> means

a)

Defines a line break

b)

Defines a paragraph

c)

Titles the document

d)

Defines a section

11.

Given the following output - which HTML element would produce the desired output for #1? (see image)

a)

html

b)

/h1

c)

!DOCTYPE html

d)

body

12.

Given the following output - which HTML element would produce the desired output for #2? (see image)

a)

html

b)

h1

c)

b

d)

i

13.

Given the following output - which HTML element would produce the desired output for #3? (see image)

a)

i

b)

p

c)

b

d)

u

14.

Given the following output - which HTML element would produce the desired output for #4? (see image)

a)

/h1

b)

/b

c)

/i

d)

/u

15.

Given the following output - which HTML element would produce the desired output for #5? (see image)

a)

/h1

b)

/b

c)

/i

d)

/u

16.

Given the following output - which HTML element would produce the desired output for #6? (see image)

a)

Caesar Salad

b)

Caesar salad

c)

caesar Salad

d)

caesar salad

17.

Given the following output - which HTML element would produce the desired output for #7? (see image)

a)

ul

b)

li

c)

/li

d)

/ul

18.

Given the following output - which HTML element would produce the desired output for #8? (see image)

a)

ul

b)

li

c)

/li

d)

/ul

19.

Given the following output - which HTML element would produce the desired output for #9? (see image)

a)

ul

b)

li

c)

/li

d)

/ul

20.

What file extension(s) could be used to save a notepad document?

a)

.txt

b)

.htm

c)

.html

d)

all of the above

21.

In the picture of an HTML document below, identify the file name for the image that will appear on the web page.

a)

img

b)

html5

c)

html5.gif

d)

HTML5 Icon

22.

In the picture of an HTML document below, identify the attribute utilized that satisfies the Americans with Disabilities Act.

a)

alt

b)

src

c)

style

d)

!DOCTYPE

23.

In the picture of an HTML document below, identify the size of the image that will display on the webpage.

a)

5 pixels x 5 pixels

b)

5 MB

c)

128 pixels x 128 pixels

d)

128 MB

24.

A combination of what colors are used to create and represent millions of other colors in webpages (check all that apply)?

a)

Blue

b)

Green

c)

Orange

d)

Red

e)

Yellow

25.

CSS is used to add which of the following to a webpage?

a)

Comments

b)

Tags

c)

Style

d)

Pictures

26.

Which of the following is the correct HTML for creating a hyperlink to another webpage?

a)

< a > http://www.mywebpage.gov < /a >

b)

< a name = "http://www.mywebpage.gov" > mywebpage.gov < /a >

c)

< a url = "http://www.mywebpage.gov" > mywebpage.gov < /a >

d)

< a href = "http://www.mywebpage.gov" > My Web Page < /a >

27.

What is the correct HTML for setting a background color?

a)

< body background = "blue" >

b)

< body bg = "blue" >

c)

< body "background-color-style = blue">

d)

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

28.

Select all of the following that are table elements.

a)

A. < table >

b)

A. < tr >

c)

A. < tt >

d)

A. < td >

e)

A. < thead >

29.

Comments in HTML begin with <!-- and end with -->.

a)

True

b)

False

30.

6. Consider the following HTML document:

<html>

<body>

<table border = “1”>

<tr>

<td> Baseball Teams </td>

<td> Mascot </td>

</tr>

<tr>

<td> Arizona Diamondbacks </td>

<td> Baxter </td>

</tr>

<tr>

<td> Philadelphia Phillies </td>

<td> Fanatic </td>

</tr>

</table>

</body>

</html>

How many rows and columns will be in the table that displays on the webpage for this document once opened?

a)

2 rows, 2 columns

b)

3 rows, 2 columns

c)

2 rows, 3 columns

d)

3 rows, 3 columns

31.

Bank of America is likely to have a website with an http prefix (rather than https), because of the amount of traffic their website has every day.

a)

True

b)

False

32.

The hexadecimal code #A70000 corresponds to which color?

a)

Red

b)

Green

c)

Blue

d)

Yellow

33.

Color parameter decimal values range from:

a)

0 to 100

b)

0 to 255

c)

0 to 256

d)

0 to 1000

34.

In CSS, how would you style all of the < h3 > tags on a page?

a)

h3 {

}

b)

#h3 {

}

c)

.h3 {

}

d)

< h3 > {

}

35.

Which of the following HTML elements do Ordered Lists and Unordered Lists have in common?

a)

<a>

b)

<tr>

c)

<li>

d)

<dl>

36.

Programs like Paint and Photoshop are used for:

a)

text editing

b)

web site editing

c)

photo editing

d)

music editing