Greg
Greg

Reputation: 3063

submit form: button or input?

what is the best approach? Should I use this:

<button type="submit" value="Envoyer" name="submit">ENVOYER&nbsp;</button>

or this:

<input type="submit" value="Envoyer" name="submit">

And why?

Many thanks

Upvotes: 0

Views: 49

Answers (1)

user3660182
user3660182

Reputation:

The disadvantage of is that it's not fully supported by older browsers. IE6/7, for example, don't display it correctly.

Unless you have some specific reason, it's probably best to stick to <input type='submit' />.

<input type='submit' /> doesn't support HTML inside of it, since it's a single self-closing tag.

Upvotes: 1

Related Questions