I have an HTML page that is too messy, so I'm trying to crop it.
I always put type='text'on my inputs when they are text inputs:
type='text'
<input type="text" />
However, the browser does not seem to need this.
Omit this attribute, where is text considered bad practice?
To answer this question, we can turn to:
HTML4 SPEC 17.4 INPUT Element
type = text | password | Check box | radio | send | reset | File | tucked away | image | [CI] button This attribute defines the type of control to be created. The default value for this attribute is text.
HTML5 4.10.5
type ( ) . . .
, .
type , - text, HTML ( HTML 2.0) . , , , , .
type
text
DOM, <input> <input type=text>, ( type node 'text'), , attributes type. JavaScript, type, .
<input>
<input type=text>
'text'
attributes
, input , , HTML-, , , , , , , type .
input
, , , type=text. CSS input[type=text] , type=text. , , input. .
type=text
input[type=text]
, . , " ", , //, .
If you look at modern browsers, they are sure to handle it. But if your users use older browsers (especially IE-older ones), then the gods know what will happen .;)
Source: https://habr.com/ru/post/1568425/More articles:Why is my LabView while loop running too many times? - while-looponOptionsItemSelected, return super.onOptionsItemSelected (item) explanation - javaWhether there is a. ThenCompose () for CompletedFuture, which also runs exclusively? - javaDropzone.js retries if ajax failed - javascriptFixed filling in content element - htmlCreate custom documents (PDF files) on the fly on a website - linuxGoogle Guava Optional - Like Short-Circuit Expressions with Multiple Chains - javaIs it good to use counters? - performanceШрифт Удивительные значки для узлов дерева Webix - htmlобъявление битового поля в структуре С++ - c++All Articles