Free HTML Contact Form Code Ready to Copy & Submit
Drop any of these semantic HTML5 contact form snippets into a static site, replace YOUR_FORM_ID with your FormsPool endpoint, and receive validated emails right away.
Why clean HTML form attributes matter
FormsPool reads every field directly from each input's name attribute. Keeping field names lowercase and consistent (such as email, category, and message) ensures your server-side validation and routing rules match every submission cleanly.
1. Basic Contact Us Form
Best for marketing sites, portfolios, and agency landing pages.
<form action="https://formspool.com/f/YOUR_FORM_ID" method="POST">
<label for="name">Name</label>
<input id="name" name="name" type="text" required />
<label for="email">Email</label>
<input id="email" name="email" type="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" />
<button type="submit">Send Message</button>
</form>2. Routed Support & Billing Form
Pairs with FormsPool Rules to route payment, technical, and abuse tickets to separate inboxes.
<form action="https://formspool.com/f/YOUR_FORM_ID" method="POST">
<label for="email">Work Email</label>
<input id="email" name="email" type="email" required />
<label for="category">Topic</label>
<select id="category" name="category" required>
<option value="technical">Technical Support</option>
<option value="payment">Billing & Payment</option>
<option value="abuse">Report Abuse</option>
</select>
<label for="message">Details</label>
<textarea id="message" name="message" rows="5" required></textarea>
<button type="submit">Submit Ticket</button>
</form>3. Product Feedback & Rating Form
Captures structured ratings and optional follow-up email without adding backend routes.
<form action="https://formspool.com/f/YOUR_FORM_ID" method="POST">
<label for="rating">Score (1 to 5)</label>
<input id="rating" name="rating" type="number" min="1" max="5" required />
<label for="feedback">What should we improve?</label>
<textarea id="feedback" name="feedback" rows="4" required></textarea>
<label for="email">Email (optional)</label>
<input id="email" name="email" type="email" />
<button type="submit">Send Feedback</button>
</form>Handling custom redirects and AJAX without page reloads
Standard HTML forms redirect visitors to the FormsPool confirmation screen or your custom Redirect URL after submission. If you prefer keeping users on the same page with custom loading spinners and inline error messages, switch to AJAX form submission using native fetch().
To stop automated bots before they reach your inbox, keep the hidden _gotcha field in your markup and enable FormShield in form spam protection.