Required
About
The :required
pseudo-class matches input elements that are required.
Required Inputs
Inputs with the required
attribute are matched. This also includes checkboxes, radio buttons, select elements and textareas.
Non-required Inputs
Inputs without the required
attribute are not matched.