Free course
Web Forms Course
Learn to build accessible forms, validate input, submit data and files, use FormData, and handle user input safely on the server.
Prerequisites: HTML, JavaScript and HTTP
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Build accessible forms and understand the complete browser-to-server submission path.
Course contents
What a form does
Controls, name-value pairs, methods, and browser submission.
Text and choice controls
Choose and combine the native controls users need.
Accessible form structure
Labels, instructions, focus, and useful error messages.
Browser validation
Declare input constraints and explain validation errors.
Submission formats
URL encoding, multipart data, FormData, and file uploads.
JavaScript and forms
Handle events and submit data with fetch.
Server-side safety
Validate input and protect form endpoints from abuse.