Re:Just Normal Web Things
by tough on Saturday August 05, 2023 @01:58PM
(#37014716)
But not all buttons are links surely?
[ Parent
| on HN ]
Re:Just Normal Web Things
by nosefurhairdo on Saturday August 05, 2023 @02:04PM
(#37014769)
Of course not, but if your button pushes/replaces history then it should be an <a> tag with an href property.
Re:Just Normal Web Things
by traverseda on Saturday August 05, 2023 @02:17PM
(#37014895)
They should for accessibility reasons. If they're not assistive tools might not know they're even click-able.
Maybe if you're doing like a painting app or something you don't need to.
Re:Just Normal Web Things
by Raicuparta on Saturday August 05, 2023 @02:44PM
(#37015139)
Button elements and other clickable elements are all detected by accessibility tools as such. If links were the only thing they could click, the modern web would be almost completely unusable, which isn't the case.