a11yTips — Present definitions of words or phrases using…

Present definitions of words or phrases using definition lists

no. 068

Make sure definitions of phrases or words are marked up using definition lists

One of the most common accessibility issues found when definitions are provided has to do with the lack of structural markup provided to help users of assistive technologies identify them as such. Word definitions are often marked up using simple paragraphs or DIVs, with the definition terms visually rendered in bold. Since each definition stands on its own, none of that structure is semantically conveyed to assistive technology. As a result, finding the list of definitions is made much harder to users who can’t see the page. Definition lists can fix that problem.

To do so, simply make sure every definition term (or name) is marked up using a DT element, and every description (or value) that follows is marked up using a DD element. Finally, properly nest the whole list of DT-DD definitions using a DL element to programmatically bind everything together, modifying the default presentation with CSS if need be. By doing so, not only will the definitions be semantically structured as a stand-alone unit, the component’s structure will make it that much easier to find for [...]

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