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.

Basic Contact Form preview

Template Code

HTML
<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 placeholder attribute to inputs for hint text (e.g. placeholder="Your name")
  • Wrap fields in <div> elements for easier layout control
  • Add a redirect_to hidden 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

Frequently asked questions

Can I add more fields to this basic form?

Yes. Add any standard HTML input, select, or textarea element. FormWit captures all named fields automatically, no configuration needed.

Does this form work without JavaScript?

Yes. This form uses standard HTML form submission (POST). It works with JavaScript disabled and in any browser.

How do I style this form?

Add CSS classes, inline styles, or link a stylesheet. For a pre-styled version, see the Styled Contact Form template.

Get your form working in 30 seconds

  • No credit card required
  • Unlimited forms
  • 100 submissions/month free
Get Started Free