HTML Form Examples — Copy-Paste Working Code for 2026
Eight working HTML form examples — contact, registration, multi-step, file upload, donation, NPS survey, feedback widget, and a multi-column layout. Copy, paste, ship. The backend is splitforms (free for 1,000 submissions/month).
Every form-tutorial article online ships dozens of HTML snippets that don't actually work — they POST nowhere, or to a fake URL, or to a backend that's been dead for years. The eight examples on this page POST to splitforms's free `/api/submit` endpoint. Replace `YOUR_ACCESS_KEY` with the one in your splitforms dashboard and the form is live in 60 seconds.
Start with the basic contact form above. It's three inputs (name, email, message), a hidden access key, a hidden honeypot for spam, and a submit button. That's the minimum viable contact form for a modern site. Add CSS, add validation, add a thank-you page — the bones don't change.
From there, the examples differentiate on form-type (registration, donation, survey) and on form-shape (multi-step, multi-column, popover widget). Browse the linked guides at the bottom for the full set with code, screenshots, and a working live preview.
All examples use semantic HTML, native validation, and zero framework dependencies. They work in vanilla HTML, React, Vue, Astro, Next.js, WordPress, Webflow — anywhere you can drop in a `<form>` tag.
How to set this up
Pick an example that matches your form type
Contact, registration, donation, survey, feedback widget — there's a starting point for each.
Copy the HTML
All snippets are pure HTML — no framework imports, no build step.
Replace YOUR_ACCESS_KEY
Sign up for free at splitforms.com to get an access key. Paste it into the hidden input.
Deploy and submit a test
Push your page to Vercel/Netlify/GitHub Pages. Submit a test entry to confirm the email arrives.
Eight examples, one access key, sixty-second setup.
Frequently asked questions
Are these HTML form examples free to use?
Yes — every snippet on this page is freely reusable. The backend (splitforms) has a free tier of 1,000 submissions per month with no credit card. Use them in personal projects, client work, or production — no attribution required.
Will the examples work in WordPress or Webflow?
Yes. WordPress: paste into a Custom HTML block. Webflow: paste into an Embed element. Squarespace: paste into a Code block. The HTML is pure — no scripts that conflict with platform-managed jQuery or React.
Do I need a server to receive the submissions?
No. The examples POST to splitforms, which is the backend. Your site stays static — no PHP, no Node.js, no database. splitforms handles email delivery, storage, spam filtering, and webhooks.
Can I style the examples with Tailwind / Bootstrap / my CSS?
Yes. The HTML is unopinionated — no inline styles, no preset class names. Add your own CSS (Tailwind utility classes, Bootstrap form-control classes, plain CSS) without touching the form logic.
How do I customize the submission email subject?
Add a hidden input named `_subject` to the form: `<input type="hidden" name="_subject" value="New contact form submission">`. splitforms uses that as the email subject line.
Related guides
Ship the form, not the backend.
Free for 1,000 submissions/month. Email delivery, AI spam filtering, signed webhooks, real dashboard — all on the free plan. No credit card.
Get a free access key →