The “`required“` attribute is what triggers validation and then you also have different types available for form fields, such as “`number“`, “`email“` etc etc. I encourage you to try and having a read of the [spec](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-form-element “spec”).
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.