This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

number

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. {

See also

External resources

Can I use - Number input

Related pages

  • Reference
  • input

Attributions