wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML

Total questions: 65

Worksheet time: 33mins

Name
Class
Date
1.

Which of the following HTML tags creates the smallest headings in a browser?

a)

<h1>……….</h1>

b)

<h2>……….</h2>

c)

<h6>……….</h6>

d)

<h7>……….</h7>

2.

They HTML file used to load the default page from the web browser is

a)

begin.html

b)

first.html

c)

head.html

d)

index.html

3.

The closing tag for <p> is

a)

<p>

b)

</p>

c)

<p/>

d)

[p]

4.

The use of the <b>…….</b> tags in a webpage is to make the characters

a)

Bold

b)

Blur

c)

Blink

d)

Blind

5.

To present Tabula data to the user in HTML element to use is

a)

td

b)

li

c)

u

d)

table

6.

Which of the following HTML tags displays the name of the page in the caption bar of a web browser

a)

Link

b)

Meta

c)

Style

d)

title

7.

The HTML tag <table width=“500”> means

a)

500mm wide

b)

509cm wide

c)

500 words wide

d)

500 pixels wide

8.

To create hyperlink in HTML, use

9.

To create a cell in an HTML table, use the tag

a)

body

b)

td

c)

th

d)

tr

10.

The HTML elements required to produce an ordered list on the webpage are

a)

ol

b)

li

c)

ul

d)

table

11.

Which of the following can be used in authoring HTML pages?

a)

Excel

b)

Notepad

c)

Paint

d)

PowerPoint

12.

To create a row in an HTML table, use

a)

th

b)

body

c)

tb

d)

tr

13.

Which of the statements below is true about the use of a title elements in a webpage

a)

It is only used when the page is printed

b)

It displays a text in the title bar off the web browser?

c)

It does not make the title by visible today user

d)

It displays a message in a pop-up box when a use of visits to page

14.

The HTML tag <body bgcolor=………> will create a

a)

Hived body

b)

Framed body

c)

Dotted lines in the browser

d)

coloured background in the browser

15.

The HTML tag <!- - - - > is used to indicate

a)

Comments

b)

Paragraphs

c)

Programming codes

d)

Sections

16.

A user who wants three cells in a row to be merged into one will use the attributes and value

a)

rowspan=“3”

b)

rowspan=“2”

c)

colspan=“3”

d)

colspan=“2”

17.

The HTML tag <td valign=“top”> means the content of the

a)

Cell is a line to the top of the cell border

b)

cell is aligned to the top row of the cell border

c)

row is aligned to the top row of the cell border

d)

table is aligned to the top of the table border

18.

As a web developer, which of the following elements should be used to present an unordered list of items?

a)

ol

b)

ul

c)

li

d)

table

19.

The HTML element that creates structured data is

a)

td

b)

th

c)

table

d)

workgroup

20.

Which of the following surrounds a group of form controls in HTML?

a)

Fieldset

b)

Input

c)

Label

d)

Legend

21.

Intra-page links in HTML is identified with a symbol

a)

#

b)

$

c)

%

d)

!

22.

Which of the following controls in HTML forms is best used to select only one option in a series of choices

a)

Checkbox

b)

Command button

c)

Radio button

d)

Text Books

23.

Which of the following controls in HTML forms is best. Used to select multiple options in a series of choices.

a)

Checkbox

b)

Command button

c)

Radio button

d)

Text box

24.

1) HTML stands for -

a)

HighText Machine Language

b)

HyperText and links Markup Language

c)

HyperText Markup Language

d)

None of these

25.

Which of the following element is responsible for making the text bold in HTML?

a)

<pre>

b)

<a>

c)

<b>

d)

<br>

26.

Which of the following tag is used for inserting the largest heading in HTML?

a)

<h3>

b)

<h1>

c)

<h5>

d)

<h6>

27.

Which character is used to represent the closing of a tag in HTML?

a)

<\ >

b)

<! >

c)

</ >

d)

<. >

28.

Which of the following element is responsible for making the text italic in HTML?

a)

<i>

b)

<italic>

c)

<pre>

d)

<it>

29.

Which of the following tag is used to make the underlined text?

a)

<i>

b)

<pre>

c)

<ul>

d)

<u>

30.

Which of the following is the paragraph tag in HTML?

a)

<p>

b)

<b>

c)

<pre>

d)

None of the above

31.

An HTML program is saved by using the ____ extension.

a)

.ht

b)

.html

c)

.hml

d)

None of the above

32.

A program in HTML can be displayed and read by -

a)

Web browser

b)

Server

c)

Interpreter

d)

None of the above

33.

The tags in HTML are -

a)

case-sensitive

b)

in upper case

c)

not case sensitive

d)

in lowercase

34.

Challenge yourself

Code a heading that displays Hello World

a)

<h1>Hello World</h1>

b)

h1= Hello World

c)

<h1>Hello World<h1>

35.

<img> is a ............. tag

a)

insert image

b)

Paragraph

c)

Header

36.

Which of the following element is responsible for making new line in HTML?

a)

<br>

b)

<a>

c)

<b>

d)

<pre>

37.

HTML tags are element names surrounded by __________.

a)

<angle brackets>

b)

(round brackets)

c)

[square brackets]

d)

(round brackets) and [square brackets]

38.

The start tag is also called the ____________, and the end tag the closing tag.

a)

start tag

b)

beginning tag

c)

new tag

d)

opening tag

39.

The correct sequence of HTML tags for starting a webpage is

a)

A.Head, Title, HTML, body

b)

B. HTML, Body, Title, Head

c)

C. HTML, Head, Title, Body

d)

D. HTML, Head, Title, Body

40.
Which section of an HTML webpage should the <title> tag go?
a)
<head>
b)
<body>
41.
Which section of an HTML webpage contains the content that will be displayed in the browser?
a)
<head>
b)
<body>
42.

What will be the output for the following program?

<html>


<body>


<p>Hello SJPS</p>


</body>


</html>

a)

<Hello SJPS>

b)

Hello SJPS

c)

both are correct

43.
What is always the last line in an HTML webpage?
a)
<!DOCTYPE html>
b)
<html>
c)
</html>
d)
<title>
44.
HTML5 incorporates three kinds of code: HTML, CSS and Javascript. Which of these provides the structure to a webpage?
a)
Javascript
b)
HTML
c)
CSS
d)
None
45.
What is an HTML element?
a)
The starting tag
b)
The ending tag
c)
The content between the tags
d)
Everything from start to end tag
46.

The href attribute in the link tag specifies the:

a)

Destination of a link.

b)

Link

c)

Hypertext

d)

None of the above

47.

How can we resize the image?

a)

Using resize attribute

b)

Using size attribute

c)

Using height and width

d)

Using rs attribute

48.

The __________ is an instruction to the web browser about what version of HTML the page is written in

a)

< !DOCTYPE>

b)

< DOCTYPE>

c)

< TYPE>

d)

< !TYPE>

49.

When creating a Web document, what format is used to express an image's height and width?

a)

Pixels

b)

Centimeters

c)

Dots per inch

d)

Inches

50.

Where does this title appear?

a)
b)
51.

Which tag is used to add an image?

a)

<image>

b)

<img>

c)

<<img>>

d)

</image>

52.
Which line of code correctly places a gif image named "tiger" into a webpage?
a)
<img src="tiger" alt="BengalTiger" />
b)
<img gif=tiger alt="BengalTiger">
c)
<image source="tiger.gif" alt=BengalTiger" />
d)
<img src="tiger.gif" alt="BengalTiger" />
53.

What type of tag is this: <!-- -->

a)

comments

b)

questions

c)

paragraph

d)

image

54.
Where in your HTML document should you include the code <!DOCTYPE html>?
a)
body section
b)
doesn't matter
c)
last line
d)
first line
55.

Which tag defines the visible content of a web document?

a)

<head>

b)

<meta>

c)

<title>

d)

<body>

56.

Assume you have two files for your website, and these files exist in the same folder:

index.html

about.html

Which of the following is the proper way to link to the about.html page from the index.html page?

a)
b)
c)
d)
57.

The _______ tag is used to create an HTML form for user input.

a)

<fieldset>

b)

<input>

c)

<form>

d)

<label>

58.

Which allows the user to pick just one of a number of option

a)

Checkbox

b)

Radio button

c)

Drop down list

d)

Password input

59.

This is also a single-line text input but it masks the character as soon as the user enters

a)

Single line text input

b)

Multi line text input

c)

Password input controls

d)

Checkbox controls

60.

An Email address field in a form

a)

<input type="email" id="email">

b)

<input type="text" id="email">

c)

<label for="email">

<email type="text" id="email">

d)

<input text="email" id="email">

61.

What is the correct HTML for making a checkbox?

a)

<checkbox>

b)

<input type="checkbox">

c)

<check>

d)

<input type="check">

62.

Checkbox buttons let users select one or more of a particular set of choices

a)

True

b)

False

63.

The ______________ _______________ is used to send a form to a server

a)

File Input Box

b)

Radio Button

c)

Check Box

d)

Submit Button

64.

Allows users to pick just one of a number of options

a)

Radio Button

b)

Check Box

c)

Drop Down List

d)

Password Input

65.

Which of the tag is used to create a numbered list?

a)

<L> </L>

b)

<LI> </LI>

c)

<li> </lo>

d)

<ol> </ol>