Web features explorer

<input type="number">

Widely available
Tags: api html Groups: HTML > Forms HTML > HTML elements

The <input type="number"> HTML element restricts input in the field to numeric data. To learn more, see HTMLInputElement: max property, HTMLInputElement: min property, HTMLInputElement: step property, HTMLInputElement: stepDown() method, HTMLInputElement: stepUp() method, HTMLInputElement: valueAsNumber property, HTML attribute: step, <input type="number"> at MDN.

Compatibility (view on caniuse.com)