As with type="number", you specify a max instead of maxlength property, which is the maximum possible number possible. Browsers are not required to present a select element as a scrolled list box. Please note that allowing more than a decimal point to be entered can mess up with the numeral value. Note: This is a legacy attribute. ampersand. If our input number is more then our limit update input value this.value with proper number Math.abs(this.value). 8 Answers Sorted by: 101 Seem like the input type number does not support size attribute or it's not compatible along browsers, you can set it through CSS instead: input [type='number'] { width: 80px; } Updated Fiddle Share Follow edited May 26, 2021 at 8:57 Yeheshuah 1,207 1 13 27 answered Mar 28, 2014 at 10:15 Felix 37.9k 8 43 55 the. specifies the path to the image to be displayed: There are two ways to specify the URL in the src Specifies the URL of the document's cache manifest. changed. Specifies the horizontal alignment of the element. Did I miss anything? designed. Contains a URI which points to the source of the quote or change. The in HTML5? Each menu option is defined by an