Reference lesson

HTML Forms

Collect labeled and validated user input.

About 8 minutes

What you’ll learn

A label connects understandable text to a form control. Input types provide built-in keyboard and validation behavior.

Try it yourself

Press Ctrl/Cmd + Enter to run.