0

Button & input

Which is better?

24th Sep 2020, 7:35 AM
Vikash Godara
Vikash Godara - avatar
4 odpowiedzi
+ 4
The much older <input type="button" /> is much more limited in styling compared to the newer <button> tag.
25th Sep 2020, 3:26 PM
David Carroll
David Carroll - avatar
+ 1
Its not sense
24th Sep 2020, 7:35 AM
Jeremy
Jeremy - avatar
+ 1
Button is a button that you click, Input is an input type (text, password, checkbox, radio, button, date, number ...)
24th Sep 2020, 7:36 AM
Sousou
Sousou - avatar
+ 1
The MDN says the following: Note: While <input> elements of type button are still perfectly valid HTML, the newer <button> element is now the favored way to create buttons. Given that a <button>’s label text is inserted between the opening and closing tags, you can include HTML in the label, even images.
24th Sep 2020, 7:37 AM
Aaron Eberhardt
Aaron Eberhardt - avatar