value attribute in html accepts only integers code example Example: html5 number integer <input type="number" step="1" />