wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Unit 3: HTML Forms

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is the main purpose of an HTML form?

a)

To display videos

b)

To collect user data

c)

To format text

d)

To link pages

2.

Which tag is used to define a form?

a)

<imput>

b)

<form>

c)

<data>

d)

<submit>

3.

What does the <input> tag do inside a form?

a)

Adds an image

b)

Creates spaces

c)

Collects user input

d)

Links to another page

4.

What does <input type="text"> create?

a)

A dropdown list

b)

A password box

c)

A single-line text box

d)

A text paragraph

5.

Which input type hides the characters typed by the user?

a)

text

b)

email

c)

password

d)

number

6.

What does <input type="email"> automatically check for?

a)

A date format

b)

An @ symbol and domain

c)

A number

d)

A capital letter

7.

Which input type lets a user select a date from a calendar?

a)

date

b)

month

c)

time

d)

text

8.

What does <input type="number"> do?

a)

Adds a counter

b)

Allows only numbers

c)

Opens a calculator

d)

Formats text

9.

Which tag creates a drop-down menu?

a)

<input>

b)

<menu>

c)

<select>

d)

<dropdown>

10.

Which tag is used to define each choice in a drop-down list?

a)

<option>

b)

<choose>

c)

<pick>

d)

<choice>

11.

What is the purpose of the <textarea> tag?

a)

Create short text inputs

b)

Display code

c)

Allow long text entries

d)

Insert links

12.

What does the required attribute do in a form?

a)

Makes a field optional

b)

Prevents submission until filled

c)

Deletes input

d)

Hides labels

13.

What does maxlength="10" mean for a text input?

a)

The user can only type 10 words

b)

The user can type only 10 characters

c)

The form expires after 10 seconds

d)

The field appears 10 times

14.

What is the purpose of form validation?

a)

To check that information entered is correct

b)

To delete user data after sending

c)

To change text color

d)

To make pages load faster

15.

Which attribute sets a minimum number for numeric input?

a)

low

b)

start

c)

min

d)

small

16.

What does the action attribute define?

a)

The color of the submit button

b)

Where form data is sent

c)

The size of input boxes

d)

The form’s name

17.

What does the method attribute control?

a)

How data is sent

b)

The text color

c)

How the form looks

d)

The font type

18.

What happens when method="get" is used?

a)

Data is hidden

b)

Data appears in the URL

c)

Data is deleted

d)

Data is sent by email

19.

When should method="post" be used?

a)

For secure or private data

b)

For public comments

c)

For search engines

d)

For animations

20.

Which of the following best describes HTML forms?

a)

Tools for decoration

b)

Code for styling

c)

Bridges between users and websites

d)

Ways to make pages colorful