What’s the difference between using type Ubmit in buttom and input?

Asked

Viewed 67 times

0

I’ve always made forms with <input type="submit" value="Enviar">, but observing the bootstrap documentation I realized that they use Submit, so I decided to adopt this method because I always found strange the text "Send" inside the value of a input.

I wonder what the difference is between the two uses.

I imagine that the <input type="submit" value="Enviar"> in case you need to use two and so filter on the server or by javascript, which sending option the user chose. That’s it?

  • 1

    button, by default, has tabindex=0 and must therefore be accessible by Tab (read more here). If it’s not like this, you must have changed it manually.

  • has something interesting here http://www.criaweb.com/artigos/botoes-html-com-tag-button.html

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.