Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 74679

Is type="submit" the default for a button in a form in IE8 through 11?

$
0
0

I'm trying to figure out if it's worth specifying type="submit" for a button inside a form if I'm supporting more recent IE versions; as MDN states, type="submit" is the default if the attribute is not specified for buttons associated with a <form>, or if the attribute is an empty or invalid value." However, W3Schools states, "Always specify the type attribute for the button. The default type for Internet Explorer is "button", while in other browsers (and in the W3C specification) it is "submit"."

Based on what I've been able to find so far, it sounds it's only IE7 and below that have button as the default value for the type attribute; is that so?


Viewing all articles
Browse latest Browse all 74679

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>