a11yTips — Avoid using headings for formatting effects

Avoid using headings for formatting effects

no. 003

Make sure header elements are not only used for bold or emphasis

While heading elements such as H1, H2 and H3 display boldfaced or emphasized text by default, they should not be used simply to create formatting effects. Headings should convey structure: every time a heading element is used, its content becomes part of the document outline. Whenever a heading is used for formatting effects, that content becomes part of the document outline, hurting the logical structure of the document for assistive technology users who rely on that outline to understand what the document is about.

To do this, simply make sure that every time content needs to be made bold or emphasized, other techniques such as using the STRONG element or better yet, the font-weight CSS property are used instead. Assistive technologies such as screen readers will then avoid conveying misleading information about the document outline to the end users.

User Story
Simple Code Example

<h1>Used for 1st level heading, not random text</h1>

Testing Methodology

Using the Web Developer Toolbar for Firefox, select the “Outline Headings” test under “Outline” and make sure all headings shown really serve a headings purpose.

Specification Details

  • WCAG 2.0: Level A
  • Principle: Perceivable
  • Guideline: 1.3 Adaptable
  • Success [...]

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