NEW
Font size
WorksheetsUnit 3: HTML Forms
Total questions: 20
Worksheet time: 10mins
What is the main purpose of an HTML form?
To display videos
To collect user data
To format text
To link pages
Which tag is used to define a form?
<imput>
<form>
<data>
<submit>
What does the <input> tag do inside a form?
Adds an image
Creates spaces
Collects user input
Links to another page
What does <input type="text"> create?
A dropdown list
A password box
A single-line text box
A text paragraph
Which input type hides the characters typed by the user?
text
password
number
What does <input type="email"> automatically check for?
A date format
An @ symbol and domain
A number
A capital letter
Which input type lets a user select a date from a calendar?
date
month
time
text
What does <input type="number"> do?
Adds a counter
Allows only numbers
Opens a calculator
Formats text
Which tag creates a drop-down menu?
<input>
<menu>
<select>
<dropdown>
Which tag is used to define each choice in a drop-down list?
<option>
<choose>
<pick>
<choice>
What is the purpose of the <textarea> tag?
Create short text inputs
Display code
Allow long text entries
Insert links
What does the required attribute do in a form?
Makes a field optional
Prevents submission until filled
Deletes input
Hides labels
What does maxlength="10" mean for a text input?
The user can only type 10 words
The user can type only 10 characters
The form expires after 10 seconds
The field appears 10 times
What is the purpose of form validation?
To check that information entered is correct
To delete user data after sending
To change text color
To make pages load faster
Which attribute sets a minimum number for numeric input?
low
start
min
small
What does the action attribute define?
The color of the submit button
Where form data is sent
The size of input boxes
The form’s name
What does the method attribute control?
How data is sent
The text color
How the form looks
The font type
What happens when method="get" is used?
Data is hidden
Data appears in the URL
Data is deleted
Data is sent by email
When should method="post" be used?
For secure or private data
For public comments
For search engines
For animations
Which of the following best describes HTML forms?
Tools for decoration
Code for styling
Bridges between users and websites
Ways to make pages colorful
