Button submit or input submit better?

Hi,

As far as i know, these do the same thing, and they look the same, so which one is used appropriate ?

<button value=“submit” type=“submit” name=“submit”>submit</button>
<input value=“submit” type=“submit” name=“submit” />

The button element is buggy in IE ( sends the innerHTML ), it’s best to use input instead.

oh I see.

Thanks!

An <input> button’s text is specified in its value attribute, which means it can only be a simple text string. If that’s all you need, using an <input> is the way to go.

A <button> can have much richer content, even block-level elements. If you need a complex button you should use a <button>, but it does have some issues in some browsers.

THAT is one of the many things that started me on the road to wanting IE destroyed. Years ago, when I wasn’t aware of that, and I was creating my first ecommerce site, I had to rewrite large portions of my code plus the HTML/CSS when we were nearly finished with the project before we realized what was going on.