←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 1 comments | | HN request time: 0.202s | source
Show context
xnx ◴[] No.45775418[source]
Page makes no mention of <input type="button">. Are there any situations where that should be used?
replies(3): >>45775598 #>>45775605 #>>45775960 #
1. adam_beck ◴[] No.45775598[source]
From MDN:

> 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.