Semantics
- Use semantic HTML5 elements, don’t compose the HTML using mainly (meaningless) divs and spans
- Use an
<a>for change of location - Use a
<button>to invoke an action
screen-reader-text class
This class is used to hide content from screen but not from screen readers and search engines. The CSS class screen-reader-text explains why and how and gives the most recent CSS properties used for WordPress core.Title attribute
Title attribute on iframes
Give iframes a unique title attribute describing the content of the iframe.Title attribute on links
Don’t use a title attribute on links. The support is so different per device that it can’t be trusted to be consistent..screen-reader-text class to hide it from vision:
ARIA
WAI-ARIA stands for “Web Accessibility Initiative - Accessible Rich Internet Applications”. It is a set of attributes to help enhance the semantics of a web site or web application to help assistive technologies, such as screen readers for the blind, make sense of certain things that are not native to HTML.First rule of ARIA: don’t use ARIA.