Basic Contact Form
The simplest possible contact form: name, email, and message. No CSS framework needed, no JavaScript dependencies. Copy this into any HTML page and it works. Perfect for quick prototypes, landing pages, or any site where you want a working contact form in under a minute.
Template Code
<form action="https://app.formwit.com/api/s/YOUR_FORM_ID" method="POST">
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<label for="email">Email</label>
<input type="email" id="email" name="email" required />
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<!-- Honeypot spam protection -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" />
<button type="submit">Send Message</button>
</form> Want to customize?
Build your own form visually with our free HTML form generator.
Try the Form Generator →Use cases
- Personal portfolio or blog
- Quick prototypes and MVPs
- Static HTML websites with no build tools
- Any site that needs a simple contact form fast
Customization tips
- Add your own CSS classes or inline styles to match your site design
- Add a
placeholderattribute to inputs for hint text (e.g.placeholder="Your name") - Wrap fields in
<div>elements for easier layout control - Add a
redirect_tohidden field to send users to a thank-you page after submission
Related guide
Want a step-by-step walkthrough? Read the full HTML Contact Form Guide.
Related templates
Styled Contact Form (CSS)
A clean, styled contact form using vanilla CSS. Responsive layout with proper spacing, focus states, and a polished look.
Tailwind CSS Contact Form
A contact form styled with Tailwind CSS utility classes. Drop this into any Tailwind project for a polished look.
Multi-Field Contact Form
A contact form with phone number, subject dropdown, and message fields. Ideal for business websites that need structured inquiries.
Frequently asked questions
Can I add more fields to this basic form?
Does this form work without JavaScript?
How do I style this form?
Get your form working in 30 seconds
- No credit card required
- Unlimited forms
- 100 submissions/month free