runrunforest — 2009-02-07T00:47:47-05:00 — #1
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" />
soulscratch — 2009-02-07T00:51:25-05:00 — #2
The button element is buggy in IE ( sends the innerHTML ), it's best to use input instead.
runrunforest — 2009-02-07T00:56:24-05:00 — #3
autisticcuckoo — 2009-02-07T02:39:10-05:00 — #4
<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.
<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.
drhowarddrfine — 2009-02-07T10:33:38-05:00 — #5
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.