See http://mobileinputtypes.com/ for an overview of mobile keyboards. This seems to be an underspecified area of HTML where all options are imperfect one way or another:
* [[https://html.spec.whatwg.org/multipage/forms.html#number-state-(type=number)|`type=number`]] shows an overcomplicated keyboard with mostly not numbers, shows a spinner (there are [[http://stackoverflow.com/questions/3790935/can-i-hide-the-html5-number-input-s-spin-box|various browser-specific hacks]] to hide it, but they look fragile), and allegedly rejects some natural input (such as six digits with space in the middle) on Firefox
* [[https://html.spec.whatwg.org/multipage/forms.html#telephone-state-(type=tel)|`type=tel`]] shows the right keyboard but is a poor fit semantically
* [[https://html.spec.whatwg.org/multipage/forms.html#text-(type=text)-state-and-search-state-(type=search)|`type=text`]] with [[https://html.spec.whatwg.org/multipage/forms.html#attr-input-pattern|`pattern=[0-9]*`]] or something similar shows the right keyboard but is not an ideal fit semantically and rejects anything that's not exactly six digits on Firefox
* [[https://html.spec.whatwg.org/multipage/forms.html#attr-fe-inputmode|`inputmode`]] is not recognized by anything currently out there, and does not offer more useful options than `type`, anyway.
Tests:
* [[https://jsfiddle.net/Ldbphsg1/4/|type=number]] with min/max 0/999999
* [[https://jsfiddle.net/aLj0djcp/3/|type=number]] with pattern `[0-9]{6}` and min/max
* [[https://jsfiddle.net/qLwo6h5d/3/|type=tel]]
* [[https://jsfiddle.net/eb0d4a0L/4/|type=tel]] with pattern `[0-9]{6}`
* [[https://jsfiddle.net/xy0frzj9/1/|type=text]] with pattern `[0-9]{6}`
(Also `type="tel"` is currently unstyled in vform at least.)