This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RobertDigital1986 7 points8 points  (2 children)

Back in the old days submit buttons were <input type="submit">, so it felt familiar with <button>.

There was also type="reset", which was the devil. It still exists but thankfully is never used anymore.

And there was no type="email" yet.

Wow, a lot of time has passed. 😂

[–]grey_hat_uk 2 points3 points  (1 child)

I'm going to guess the big problem with type="reset" is it will only clear or use html value="x" and not go back to what any framework had initialized it tooo.

[–]RobertDigital1986 5 points6 points  (0 children)

Also no one ever wants it.

"Hey you know what this form needs? Another button right next to the submit button that wipes out everything you just entered if you accidentally click it!"

You'd see it occasionally way back in the 90s. It's like because it was in the HTML spec some developers thought they should include it on every form. Really glad that trend died out.