Y
Hacker News
new
|
ask
|
show
|
jobs
by
tln
231 days ago
Yes! If it's clickable, it should either be a button or a link.
1 comments
culi
231 days ago
there are plenty of other vanilla html elements that are clickable. <details>, <input type=[button|checkbox|radio|file|etc]>, <label>, <select>, etc
link
tln
231 days ago
True although the built-in click behavior is sufficient on these, ie you should not need to add onclick. Which should be for <button> and <a>
link