Building the Form

Let's set up the basic framework for our auto validating form using the HTML form element.

The HTML

We’ll start with the HTML and layout some basic elements for us to work with.

In general, as you​’re developing on the frontend, you’ll find an iterative process with short feedback loops to be the fastest way of progressing. If you’re building a JavaScript library, that means continuously​ console.loging or writing small tests after completion of a piece. In our case, we’re working towards validating inputs, so it makes sense to have some to work with.

Get hands-on with 1200+ tech skills courses.