Is there any functional purpose to specify type = text for input elements?

Viewed 78

I some times see this form:

  <input type="text"></input>

However; as this is the default as seen on MDN, is there any reason to state it explicitly?

1 Answers

Unfortunately ...

Although it is the default, if you do not explicitly state it in the HTML then the selector:

input[type=text]{
}

will not work.

Related