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
- Sign up to FormJam and Create a Form
- Copy your Form Action URL
- Copy the code (you will have to copy the Compiled CSS code if you don't use SASS)
- Change the form action to your URL.
- Done!