Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.
JAVASCRIPT / CHAPTER 05
JavaScript
Forms.
Forms in JavaScript: labels, reading fields, checkbox/radio, FormData, empty vs zero, HTML constraints, the Constraint API, aria errors, and a simulated signup. Client validation helps, but the server re-checks. Learn and Practice; challenges are separate.
Choose a section
Lesson with explanation and a guided task. Theory stays readable; completion requires a passing solution.
Challenges are optional and do not block the next chapter.
10 lessons available
The foundations behind your ideas.
- 01Open lesson
Labels & Fields · Locked
label for / input id
- 02Open lesson
Read Controls · Locked
value of text, number, select
- 03Open lesson
Checkbox & Radio · Locked
value vs checked
- 04Open lesson
FormData · Locked
FormData and name
- 05Open lesson
Normalize & Zero · Locked
trim, Number, empty vs 0
- 06Open lesson
HTML Constraints · Locked
required, type, min/max, pattern
- 07Open lesson
Constraint API · Locked
setCustomValidity and clearing
- 08Open lesson
Aria Errors · Locked
aria-invalid and aria-describedby
- 09Open lesson
Submit & Reset · Locked
preventDefault, success, reset()
- 10Open lesson
Signup Project · Locked
multi-field form with validation