force user to type number in forms html code example Example: html input box integer only <input type="number" name="someid" />