a11yTips — Include decorative images using CSS

document.write(‘

Loading…

‘);

Include decorative images using CSS

Make sure decorative images are embedded using CSS and not HTML markup

One of the ways through which CSS improves accessibility for people with disabilities is by allowing authors to add decorative images and images used exclusively for visual formatting to pages without requiring additional HTML markup within the content. This not only results in a cleaner separation between the presentation and structure layers, it also makes for a more streamlined code base. Embedding images and other visual elements using CSS guarantees that assistive technologies will be ignoring that content. As long as these images are indeed, truly presentational in nature and do not convey any relevant information or meaning to the page, using CSS to embed images can be a perfectly viable approach to more accessible web content.

To do so, simply embed images that are either decorative or do not convey any meaning using the CSS background property, instead of the IMG element. As screen readers are built to ignore background images by default, users will never even hear about them and will be able to concentrate on the content that provides real value. As an added bonus, browsers that can ignore or turn off [...]

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