I want to use the html5 element on my website, but i want to know what happens to this field in browsers that do not support this
When a browser does not recognize a particular type
value for an , it reverts to it's default value, which is
text
. So, all of the following are equivalent on browsers that do not support type="number"
:
For browsers that do support type="number"
, the number
will be displayed instead of the
text
.
Read more about the type attribute in the HTML Specification.