DEV Community

4 Ways To Improve Your Website's Accessibility Today

Nathan on August 24, 2021

Often times, web accessibility is talked about as some abstract, intangible concept. In reality, there are a few very actionable ways to drastical...
Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

The skip links section you need to make it clear that the skip link should be offscreen / visually hidden but still focusable and then visible when focused.

It isn’t really for screen readers as they use other ways to navigate, it is for people who don’t use a mouse and use the Tab key to navigate.

<main> should wrap all of the main content not just be part of a section so your example is misleading on semantic HTML. w3.org/TR/html-main-element/#the-m...

<time> should always have a datetime attribute to ensure it is announced correctly in screen readers, not just for SEO, your second one is correct but you missed it on the first one.

Figcaption should be different to alt as pointed out in another comment otherwise this cause unnecessary duplication.

Summary and Details aren’t dropdowns, that may confuse people calling them that. They are disclosure elements or you could call them accordions if you want to make it easier to understand.

With all that being said (and most of them are minor points) this is a great article and introduction to accessibility “quick wins” that people can easily implement.

Definitely deserves a ❤️🦄!

Collapse
 
owenmelbz profile image
Owen Melbourne

Further to the skip links - "modern" accessibility tools including Apples VoiceOver uses semantic markup first before things like skip links. This means each page you visit it will look for a <main> and automatically skip to it or bypass anything in <nav> making the skip links even less useful for screen reader tech (keyboard nav is different kettle of fish)

Collapse
 
natclark profile image
Nathan

Interesting, I hadn't heard this before, thanks for sharing! In any case, it is still useful for users that use their keyboard to navigate.

Collapse
 
natclark profile image
Nathan

Thanks for your feedback - all your points are correct and helpful! I definitely should have been more clear about the skip link.

But yes, the goal is to provide examples of some actionable quick wins for people just getting started.

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Then you did that beautifully as the article explains why and how to do things really well.

I did think you knew skip links as you explained all the bits, just maybe a phrasing issue (or the way I read it 🤣).

Collapse
 
auroratide profile image
Timothy Foster • Edited

Nice tips! Number 2 was new to me, very nice to know!

Your <figcaption> tag does not have to match the alt attribute of your <img> tag(s)!

In fact, I'd reckon they usually shouldn't match. If they're the same then the screenreader ends up announcing the same thing twice. Usually I think of the caption as providing additional context to an image not necessarily evident from the content of the image alone, or highlighting what should be noticed in the image.

Collapse
 
natclark profile image
Nathan

Yep! It's definitely ideal for longer, more detailed descriptions.

Collapse
 
imiahazel profile image
Imia Hazel

Thanks for the new knowledge in this article. I will explore more about prefers-reduced-motion. Great Article.

Collapse
 
natclark profile image
Nathan

Thanks Imia!

Collapse
 
natclark profile image
Nathan

Thanks Harsh! Not sure I understand what that link is for though.

Collapse
 
afif profile image
Temani Afif

it's a spam comment ;) ignore it, will get deleted soon