HTML forms are an element for any website that needs to collect information from its users. Forms allow you to gather input from users, such as their name, email address, or phone number, and use that information to perform actions, such as signing them up for a newsletter or processing an order.

To create a form in HTML, you will need to use

Element. This element defines the start and end of the form, and contains all of the form's input fields and buttons.

Inside

Element, you can add various types of input fields, such as text boxes, checkboxes, and radio buttons, using the appropriate HTML elements. For example, to create a text input field for the user's name, you would use the element.

Here's an example of a simple HTML form that includes a text input field for the user's name and an email input field for their email address, as well as a submit button:

More from the blog

Want us to build yours instead?

On a project, every milestone ends with a link to the working build, and the code, the accounts and every password are yours at the handover.

What we’d build for you is on Services.

Send us the brief, or start with the free call.

Page updated .

Privacy preferences

Choose whether this browser sends visit data to our analytics tools. The site works the same either way.

Google Analytics, Amplitude and Microsoft Clarity show us which pages get read. Off means none of the three loads.

Always on

Sentry error reports, with personal data removed, and the Cloudflare spam check on the brief form.

Each cookie is listed in our Cookie Policy.