Table of Contents

What is the Native Form Validation (HTML only)?

About

This page is about browser native form validation in HTML.

The javascript counterpart is called the constraint validation API 1).

In short, you set:

that constrain the possible value of form elements.

Example

Check email

List of validation rules

Type:

Attributes:

Limitations

HTML validation has its limitations.

Function

CSS

If an input is invalid, the :invalid pseudo-class is applied to the input element.

Documentation / Reference