How to use all the built-in form fields you can think of!
Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026
The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.
In the Forms 101 unit we worked with a simple text input form field.
In this unit I want to introduce you to a variety of other fields you can use.
We’ll expand the textual field types, then we’ll add other kinds of fields: checkboxes, radio buttons, textarea, select, and more.
Each field accepts those attributes:
idandclassas any HTML element to assign an unique identifier and HTML classesnameto give a label to the datavalueto set the initial valuerequiredto set the field as requireddisabledto set the field as disabled (grayed out and not editable)readonlyto set the field as read only (not editable)placeholdersets a placeholder for the field, similar to value as it’s displayed in the field, but not sent to the serverautofocusput on a single form field in the page, the browser will put its focus on that field on page load
Lessons in this unit:
| 0: | ▶︎ Introduction |
| 1: | Form submit field |
| 2: | Specialized input fields |
| 3: | Checkboxes |
| 4: | Radio buttons |
| 5: | File input fields |
| 6: | Textarea |
| 7: | Select |
| 8: | Autocompleting form fields |