html5 pattern for numbers only code example Example: html5 number integer <input type="number" step="1" />