How to add the form to your website
- Build it. Start from a template, rename the fields, and mark the ones people must fill in. Half-width fields sit side by side on wide screens and stack on phones.
- Choose a destination. HTML only collects the answers. Under Destination, enter the URL that receives them, switch to Netlify Forms, or use mailto: for internal pages.
- Copy and paste. Copy the snippet into your page where the form should appear, or download a complete
.htmlfile. Then send yourself a test submission.
What the generated code does for you
- Labels people and screen readers can use. Each input has a visible label tied to it with
forandid, radio and checkbox groups sit in afieldsetwith alegend, and help text is announced througharia-describedby. - Faster filling on phones. Email, phone, name, company and address fields get the right
typeandautocompletetoken, so mobile keyboards and browser autofill work. - Validation without scripts. Required fields use the browser’s own checks, and
:user-invalidmarks a field red only after someone has interacted with it. - A spam trap. The optional honeypot catches simple bots without a CAPTCHA.
- CSS that stays in its lane. Every rule is scoped to
.wj-form, and colors and corners are custom properties you can change in one place.
Where to send form submissions
| Option | Good for | Watch out for |
|---|---|---|
| Your own server script | Full control over storage and email | You validate input, block spam and keep it running |
| Serverless function | Static sites on Vercel, Cloudflare or AWS | You still write the email or storage step |
| Netlify Forms | Sites already hosted on Netlify | Free tier submission limits; only works on Netlify |
| Hosted form backend | Any static site, no code | Most need an account and an endpoint key |
| mailto: | Quick internal forms | Needs an email app on the visitor’s device; no files |
If you would rather not run any backend, the WidgetJar form builder widget stores entries, sends email notifications and passes submissions to tools like Google Sheets, Slack and Zapier. It adds a script to your page, which this generator never does.