data type attribute for integer in html form code example Example: html5 number integer <input type="number" step="1" />