Module 13: Forms and Inputs

Lesson 2 of 5 · 15–25 minutes

Input fields

🏠The everyday picture

On a paper form, the box for a date has little slots for day, month and year, and the box for a signature is wide. The shape of the box tells you what goes in it.

📘What it really is

🖱️Try it

Inside your form, add a text field for name, an email field, a tel field, a <select> for "Reason for contacting" with three options, and a <textarea> for the message. Open the page on your phone (or use developer tools' device mode) and tap the email and phone fields to see the different keyboards.

✅Quick check

Why use type="tel" instead of type="text" for a phone number?

Show the answer

Phones show the number pad, which makes typing easier and reduces mistakes.

Choosing one class time out of four: checkboxes or radio buttons?

Show the answer

Radio buttons, because only one can be chosen.

← PreviousWhat forms are for
ProLearners Assist