a11yTips — Make decorative images invisible to assistive…

Make decorative images invisible to assistive technologies

no. 004

Make sure assistive technologies can safely ignore images that convey no information

Images that are purely decorative in nature or that do not convey any information are often considered irrelevant to those who cannot see them. To help users of assistive technologies focus on content that truly matters, these images are usually better off being ignored altogether.

To do this, simply provide such images with a null ALT attribute value (alt=””). Avoid other describing mechanisms, such as TITLE attributes or aria-label properties. Better yet, make sure decorative images are embedded as background images instead of being part of the HTML, using the background-image CSS property. When decorative images are only provided with a null ALT attribute, assistive technologies understand these images can be safely ignored and will therefore fail to announce them to end users.

User Story

As a visually impaired user using assistive technology, I want my tools to reliably ignore images that are purely decorative in nature or that that do not bring any relevant information, so that I can focus solely on content information.

Simple Code Example

<img src=”decorative-image.png” alt=””>

Testing Methodology

Using the Web Developer Toolbar for Firefox, select the “Display ALT Attributes” [...]

Read article at dboudreau.tumblr.com

Article Taxonomies

Categories:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/webable/www/www/wp-content/themes/webable/content-mcm.php:65 Stack trace: #0 /home/webable/www/www/wp-includes/template.php(812): require() #1 /home/webable/www/www/wp-includes/template.php(745): load_template('/home/webable/w...', false, Array) #2 /home/webable/www/www/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) #3 /home/webable/www/www/wp-content/themes/webable/single-mcm_article.php(15): get_template_part('content-mcm') #4 /home/webable/www/www/wp-includes/template-loader.php(106): include('/home/webable/w...') #5 /home/webable/www/www/wp-blog-header.php(19): require_once('/home/webable/w...') #6 /home/webable/www/www/index.php(17): require('/home/webable/w...') #7 {main} thrown in /home/webable/www/www/wp-content/themes/webable/content-mcm.php on line 65