Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tough
on Aug 5, 2023
|
parent
|
context
|
favorite
| on:
Just normal web things
But not all buttons are links surely?
nosefurhairdo
on Aug 5, 2023
|
next
[–]
Of course not, but if your button pushes/replaces history then it should be an <a> tag with an href property.
traverseda
on Aug 5, 2023
|
prev
[–]
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.
Raicuparta
on Aug 5, 2023
|
parent
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: