3

<button type="submit"></button> vs <input type="submit" />
What's your preference?

Comments
  • 2
    I prefer button but I use whatever is consistent with the rest of the app if existing.

    Button just looks cleaner.
  • 1
    <%= button_to '#', '#' %>
  • 1
    But for real, I prefer <button>
  • 1
    @LynxMagnus Same here, buttons are a lot cleaner especually if you have to put a icon via HTML inside the button. With inout this just looks messy then :D
Add Comment