wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GGHS HTML Test

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Which one does not have a closing tab?

a)

<h1>

b)

<br>

c)

<p>

d)

<h2>

2.

What are the two main parts of HTML document?

a)

Head & Body

b)

Title & Form

c)

Both

d)

None

3.

which character is used to indicate an end tag?

a)

%

b)

&

c)

/

d)

?

4.

What are the attributes used to change the size of the image?

a)

big, small

b)

width, height

c)

top, bottom

d)

x,y

5.

Which element tag is called the root element of HTML?

a)

<html>

b)

<body>

c)

<title>

d)

<head>

6.

WWW stands for ________________

a)

World wide web

b)

World without windows

c)

world wide warehouse

7.

<!doctype html> is written only once in a HTML document

a)

True

b)

False

8.

The purpose of 'alt' attribute in the image is to ______

a)

It displays the name below the image

b)

It displays the name incase image is not loaded

c)

It shows alternative Image

9.

In how many lines the output of this program is printed?

a)

2

b)

3

c)

4

d)

1

10.

Which of the below code is used to align the heading to the center of the web page?

a)

<h1 position="center">Hi</h1>

b)

<h1 align="center">Hi</h1>

c)

<h1 align="middle">Hi</h1>

d)

<h1 position="middle">Hi</h1>

11.

An empty tag contains end tag

a)

True

b)

False

12.

Which tag is used to create a button?

a)

<button>

b)

<btn>

c)

<click>

d)

<b>

13.

An attribute contains _________?

a)

Name & Value

b)

Name & Title

c)

Title & Value

d)

Title & Content

14.

HTML was created by______?

a)

Tim Berners-Lee

b)

James Gosling

c)

Dennies Ritchie

d)

Niklaus Wirth

15.

Which of the following tag is used to mark a begining of paragraph?

a)

<p>

b)

<para>

c)

<pg>

d)

<paragraph>

16.

<head> Description

a)

Defines the document type

b)

Defines information about the document

c)

Defines a header for the document

d)

Defines the Document Body

17.

Which tag is used to create a numbered list?

a)

<ul>

b)

<ol>

c)

<list>

d)

<order>

18.

Markup refers to

a)

Programming Language

b)

Text Editor

c)

Special Symbols or codes

19.

<hr> tag is used for________?

a)

creating new line

b)

creating horizontal ruler

c)

creating vertical ruler

d)

creating header

20.

The list of coded instructions is called___________?

a)

Computer Program

b)

Algorithm

c)

Utility Program