Provide valuable, actionable feedback to your users with HTML5 form validation, via browser default behaviors or custom styles and JavaScript.
HTML form validation is applied via CSS's two pseudo-classes, :invalid and :valid.
For custom Bootstrap form validation messages, you'll need to add the novalidate boolean attribute to your form.
We recommend using client-side validation, but in case you require server-side validation, you can indicate invalid and valid form fields with .is-invalid and .is-valid.
Validation styles are available for the following form controls and components:
This form demonstrates real-time validation with custom rules as you type.