Search⌘ K

HTML Forms

Explore how HTML forms create user interfaces in web applications by using form controls like inputs, buttons, and dropdowns. Understand the relationship between model class attributes and form controls, including form submission methods and data encoding. Gain foundational skills for building interactive front-end apps with plain JavaScript.

The web browser needs to render a user interface (UI) for user-interactive web applications. The a software application’s UI operates much like a form. The special elements for data input, data output, and user actions are called form controls or UI widgets.

What is a form element?

In HTML, a form element is a section of a web page consisting of block elements that contain form controls and labels on those controls. Users complete a form by entering text into input fields and by selecting items from choice controls, including dropdown selection lists, radio button groups, and checkbox groups. A completed form is submitted when the “Submit” button is clicked. When a user submits a form, ...