week11y issue 26

Your weekly frequent11y newsletter, brought to you by @ChrisBAshton:

Avoid aria-roledescription

  • Adrian Roselli writes about this attribute that describes the role of an element. It overrides what is announced to the screen reader, e.g. <input type="text" aria-roledescription="Only numbers allowed"> will read as “Only numbers allowed” instead of “input type text”. This hides meaning and the control type – a confusing experience for the user. It also doesn’t translate. There’s an open issue about the global nature of this attribute. Don’t use it!

When (not) to use the <br> element

  • Å ime Vidas shares a helpful reminder that the <br> line break element is useful in some cases. Whilst web developers have generally moved away from <br> use – seeing line breaks as presentation, not content, and therefore using CSS instead – it should still be used when line breaks are part of the content. For example: poems or addresses.

The Complete Guide to Accessibility for WordPress Websites

Did you know that you can subscribe to dai11y, week11y, fortnight11y or month11y updates! Every newsletter gets the same content; it is your choice to have short, regular emails or longer, less frequent ones. Curated with ♥ by developer @ChrisBAshton.

Loading...