r/HTML • • Oct 20 '26

Accessible hyperlinks?

Hey folks!

I am hand coding a series of webpages for my employer (don't ask). I just got dinged because the accessibility checker says my hyperlinks are not accessible.

I scratched my head a little bit, did some research and have since added aria-label attributes to the source code.

Still get dinged.

Anyone know how to handle this?

Thanks!

Edit: Here is more or less an example of the code that includes the link.

2 Upvotes

20 comments sorted by

View all comments

11

u/TurboHenk Oct 20 '26

So, what did the a11y checker actually give as feedback? Adding aria-label probably does more harm then good, and really shouldn't be necessary on a hyperlink.

Some generic advise:

  • Make the text descriptive: no "click here", but rather "go to the settings page", for instance
  • Make sure your links look like links
  • Make sure your hover and focus state rely on more than color alone

0

u/50_and_stuck Oct 20 '26

Not sure. Instructional designer is just telling me I need to do something else. Edited original comment to include sample code.

2

u/TurboHenk Oct 20 '26

Okay, and what's keeping you from running your code trough an accessibility checker yourself?

1

u/50_and_stuck Oct 20 '26

My employer. We have an on staff instructional designer who has final say on what passes and what doesn't. They are using NVDA? The accessibility checker in our LMS says it's fine.