© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
K. WilsonThe Absolute Beginner's Guide to HTML and CSShttps://doi.org/10.1007/978-1-4842-9250-1_7

7. HTML Forms

Kevin Wilson1  
(1)
WIDNES, UK
 
A form is an HTML document used to collect user input (Figure 7-1). The information entered by the user is usually sent to a server and is processed by a script.

A screenshot of a form. It has four text boxes labeled first name, last name, email address, and your message. The button to submit is at the bottom of the screen.

Figure 7-1

A Form

An HTML form contains fields for name, password, telephone number, and email address, ...

Get The Absolute Beginner's Guide to HTML and CSS: A Step-by-Step Guide with Examples and Lab Exercises now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.