HTML Form Example

HTML Forms are really pretty powerful. You can do a lot more than you think with HTML Forms.

In the example, we set up a somewhat complex HTML form with FormJam that uses absolutely ZERO JavaScript.

With careful use of required, pattern and maxlength, you see that we achieve validation on-par with that of most client-side form libraries, with a bundle size of zero.

How to use this Example

  1. Sign up to FormJam and Create a Form
  2. Copy your Form Action URL
  3. Copy the code (you will have to copy the Compiled CSS code if you don't use SASS)
  4. Change the form action to your URL.
  5. Done!