Skip to content

Contact form with validation

A form whose errors appear clearly under each field, at the right time.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

Errors are checked when leaving each filled field and on submit: the message explains how to fix it, the field switches to aria-invalid and focus moves to the first error. A summary announces the number of fields to fix or the sending confirmation. Plug submission into your service (Formspree, your own API…).

Code

Loading the code…

Archive contents

formulaire-contact-valide-html-tailwind.zip3 files · 4 Ko

  • index.html5 Ko
  • README.md2 Ko
  • LICENSE.md1 Ko

Tags

Updated on October 13, 2026.

In the same spirit

  • An appointment form: reason, day with the native date picker, morning and afternoon slots as radio buttons, full slots crossed out and a summary of the choice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • File drop zone

    Coming soon

    An upload field that accepts drag and drop and lists the chosen files.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A list of settings toggled with switches, each with a description.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Multi-step form

    Coming soon

    An appointment booking split into three steps, with a progress indicator.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
Contact form with validation | Forge