
Headings are important for structuring a webpage, allowing users to quickly scan the content for information relevant to them. For individuals using screen readers to access a webpage, it is essential that headings are used correctly so they can easily locate information. Each heading should accurately describe the content that follows and must be used semantically. It's important to note that headings should not be used merely for styling text.
Below is an example of the correct use of headings:
This is a Heading 2
Heading 1 will be the page title, all other headings on the page will start with Heading 2
This is a Heading 3
Heading 3 can be used after a Heading 2 to further organize information on your page.
This is a Heading 2
If you need to start a new set of topics, you can start with a Heading 2.
This is a Heading 3
Heading 3 can be used after a Heading 2 or after another Heading 3 to further organize information on your page.
This is a Heading 4
Be sure to use Heading 4 after a Heading 3 to keep the page content in order and allow screen reader users to easily scan the page for information.