Progressively Enhanced Form Validation, Part 2: Layering in JavaScript
This form uses browser built-in form validation when JavaScript is not available.
When JavaScript is available, the form is progressively enhanced using the Constraint Validation API.