Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Create a logical reading order for vision impaired users who rely on using assistive technology such as a screen reader to access online content.

...

Headings should not be applied to text labels and links that are bolded and do not describe a section of content.

Each web page should have a meaningful title.

Page Structure and Headings

  • Create a logical reading order by using properly nested headings in your markup, <h1> <h2> <h3> <h4> <h5> <h6>. 

  • Build the structure of the page using semantic markup. Markup that has meaning to browsers and screen readers. A web page should be able to stand on its own without the help of a style sheet.

  • Sighted users often scroll the page quickly and look for headings to get an idea of the structure and content of the page. Screen reader and other assistive technology users also have the ability to navigate web pages by heading structure, assuming true headings are used (as opposed to text that is styled to be big and/or bold). This means that the user can view a list of all of the headings on the page, or can read or jump by headings, or even navigate directly to top level headings (<h1>), next level headings (<h2>), third level headings (<h3>), and so on.

  • There should only be one <h1> heading per page and should be applied to the page title to indicate to the user that this is where the content area begins. 

  • Headings should be structured in a hierarchical manner. 

Proper Nesting of Headings 

Code Block
<h1>Page Title</h1>
      <h2>Heading Two</h2>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
                  <h4>Heading Four</h4>
                  <h4>Heading Four</h4>
      <h2>Heading Two</h2>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
                  <h4>Heading Four</h4>
                  <h4>Heading Four</h4>
      <h2>Heading Two</h2>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
            <h3>Heading Three</h3>
                  <h4>Heading Four</h4>
                  <h4>Heading Four</h4>                                                            

Provide Descriptive Headings and Labels

General Guidelines

Help users understand what information is contained in Web pages and how that information is organized by providing descriptive headings.

...

This requires headings to be descriptive enough so that screen reader users can quickly get an overview of the type of content that is available on the page.

Lists

  • HTML lists - <ul>, <ol>, and <dl> - also convey a hierarchical content structure.

  • Lists should be used to display actual list items. They should not be used for layout purposes.

Page Titles

Each web page should have a meaningful page title.

Page titles help users identify and distinguish different pages.

Help users find content and orient themselves within it by ensuring that each web page has a descriptive title.

Titles identify the current location without requiring users to read or interpret page content.

When titles appear in site maps or lists of search results, users can more quickly identify the content they need.

User agents make the title of the page easily available to the user for identifying the page.

For instance, a user agent may display the page title in the window title bar or as the name of the tab containing the page.

In cases where the page is a document or a web application, the name of the document or web application would be sufficient to describe the purpose of the page.

In cases such as Single Page Applications (SPAs), where various distinct pages/views are all nominally served from the same URI and the content of the page is changed dynamically, the title of the page should also be changed dynamically to reflect the content or topic of the current view.

Please see more detailed information on how to comply with this guideline.

WCAG Related References

1.3.1 Info and Relationships (Level A)

2.4.2 Page Titled (Level A)