number

< html‎ | elements‎ | input‎ | type
Jump to: navigation, search

number

Merge Candidate: This page is a candidate for merge with the following pages: [[html/attributes/type]]


Summary

The number type of the <input> element represents a widget for entering a number.


Overview Table

DOM Interface HTMLInputElement

Examples

This example uses the input type=number element to create an empty number control.

<input type="number" value="" name="numbox">

Notes

Remarks

The size and maxlength attributes are considered obsolete, but conform under the HTML5 specification. Note  For code samples, see Form controls part 1 and Form controls part 2: validation on the Windows Internet Explorer sample site.

Standards information


Members

The input type=number object has these types of members:

  • [#properties Properties]


Properties

The input type=number object has these properties. {

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic Support 7
28
10
9
5.0

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic Support ?
?
Supported (when?)
28
10
?
?
Supported (when?)


Compatibility notes

Browser Version Note
Internet Explorer 10 Internet Explorer does not implement any user interface

See also

External resources

Can I use - Number input

Related pages (MSDN)

  • Reference
  • input

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]