This page is Not Ready

Notice: The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

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