I want to use the html5 element <input type="number"> on my website, but i want to know what happens to this field in browsers that do not support this feature? Is it than a classic <input type="text"> field for those browsers?
I want to use the html5 element <input type=number> on my website, but i
Share
When a browser does not recognize a particular
typevalue for an<input>, it reverts to it’s default value, which istext. So, all of the following are equivalent on browsers that do not supporttype="number":For browsers that do support
type="number", thenumber<input>will be displayed instead of thetext<input>.Read more about the
typeattribute in the HTML Specification.