📜 ⬆️ ⬇️

Form Controls in html 5

Honestly, I first wanted to make a review of how modern browsers support all sorts of new controls for forms from the html specification 5. But it looks like the review will not work - the only browser that supports more than two controls is Opera.

I threw a very simple page where I placed a bunch of inputs with values ​​of the type property unknown to me until now and got the following result:

image
')
To say that browsers do not rush to the arrival of html5 - not to say anything. Meanwhile, such things could save a lot of time when developing interfaces.

Now about where it can be useful, given the specifics of distribution. It is clear that, first of all, in applications that a limited number of people have access to and their browsers are known in advance, i.e. in admin. But that's not all. The point is that all these controls are created only to facilitate the input of lines . Those. the line still goes to the server. And when the browser does not support one or another control, it also displays a string. Therefore, in principle, any of these controls can be used right now without waiting for support by all browsers, in particular url, email and search, and some do. For example, the first time I saw the url in the Gmail interface when inserting a link. At the same time, users of other browsers probably do not even realize that there is something different from the input type = "text".

Ps. It is a pity that type = "color" is not supported even in Opera.

Source: https://habr.com/ru/post/69774/


All Articles