Every attribute you can put on a form field, with a live example.
In shortUse placeholder, required, min, max, pattern and autocomplete to build friendly forms.
Definition
Input attributes change how a form control behaves: they give hints (placeholder), rules (required, pattern), limits (min, max), help (autocomplete, list) and state (disabled, readonly, autofocus).
Theory in plain words
Common input attributes
What it is
Input attributes such as placeholder, required, pattern, min, max, step, autocomplete and list refine how an input behaves.
Why we use it
They add validation, hints and helpers without JavaScript.
How it works
The browser reads each attribute and changes the control: it checks the value, shows hints or offers saved data.