No more wonky data.
This form uses the browser's default validation only.
The input field is set to required, with type=email.
Emails like foo@bar will be accepted.
Try a few emails to see the errors it displays and the emails that will be accepted.
When the form would have submitted, you'll see a pop-up alert.
Here we use the same default settings on the INPUT element, but we add a custom pattern attribute.
See the pattern here.
Patterns allow us to specify the exact regex pattern we want the browser to require for validation.
Validation applies in layers.
Try different entries and notice the different errors you see when you enter, e.g.;