Form Fields: Text Zones

Learn how to add JavaScript functions to handle the form data entered by the user.

We'll cover the following

Access input values

A text field allows a user to input text on single or multiple lines. You have two options for defining text fields: a single-line text field is defined in HTML as <input type="text">, and a multi-line text input field will be defined via <textarea> instead. Here’s the extract from the above code that lets users input a username

Get hands-on with 1400+ tech skills courses.