Understanding website structure, the skeleton of a webpage, is fundamental to building clean, navigable, and accessible webpages.
Even if you never plan to add a new page to your website without help from the LEANWI website team, the fundamentals of structure still apply to creating accessible website posts and applies to accessible documents, which may be important if you add PDFs to your website.
This tutorial focuses on understanding and managing website heading structure, specifically:
Heading Structure and Screen Readers
Screen readers use heading structure to read aloud the main landmarks of a page. This way a user doesn’t need to listen to the entire contents of a longer page when there is just one section they are looking for.
Keyboard navigation allows a user to move between headings only while skipping other text.
A screen reader can also show and read a navigation pane based on this information, like this:
The following video is a good way to see navigating headings using a screen reader in action:
Heading Structure in a (WordPress) Post
Making posts is often the bread-and-butter of a library’s interaction with their website. And often those posts have a very basic structure: title, text content, featured image.
In both posts and pages, the title of the post/page is the page’s Heading 1 (H1). No headings are necessary in a short post.
The Short Post
99% of the time, a post in this format will be accessible as long as the featured image has alt text.
And this is how it looks to the website visitor:
The Longer Post
In cases where a large amount of text and information is included in a post, it is best to break up that information into sections and divide it out with headings. This will improve readability for both traditional website visitors and those using screen readers.
This example uses several Heading 2 (H2) section titles to break up and organize text.
And this is how it looks to a website visitor. Notice how the H2 lines catch the eye for skimming for information:
Heading Structure in a (Divi) Page
Most LEANWI webpages are built using the Divi Builder. Divi Builder can also be used on posts.
While it takes more work to learn to use Divi, it does allow much more control over the visual appearance of headings (font, font size, formatting, etc.,) on individual pages.
Your website is set with a structure of defaults for heading styles (somewhat similar to the dropdown menu on posts, but in the main website settings).
Changing across your site is not a one-and-done change, and would require assistance from the LEANWI website team (websitehelp@librarieswin.org).
However, if you are working in a Divi module that contains text and a heading element, you can make changes on a page-by-page, post-by-post content. This way you can change the look of a header element on your page, but the underlying code tagging at as a <h1>, <h2>, <h3>, etc., won’t change and the screen reader will still be able to navigate it.
Common modules that have the header option include:
- Heading module
- Text and Toggle (note: in text and toggle modules, you can also use Heading dropdown in the WP text editor box as you would in a simple WP blog post)
- Blog and Post Slider
- Accordion (note: in text and toggle modules, you can also use Heading dropdown in the WP text editor box as you would in a simple WP blog post)
- Blurb
- Call to Action
- Tabs
Headings in a Document
Documents (Word, Google Docs), spreadsheets, presentations, and PDFs, are much more complex pieces of software than a webpage. Heading structure is less often correctly used in them, but equally important when they are accessed through a website.
Accessible documents are covered in more detail in other tutorials. Specific to document headings:
Word
Heading structure in a Word document is managed in the “Styles” tab in the Home menu. When Heading styles are appropriately applied, it gives a clean, consistent look to the document and makes the document navigable, as viewable in the Navigation Pane (accessed from View > [Show] Navigation Pane).
Google Docs
A reminder – if you use Google Docs to public documents, install the Grackle Docs add-on to check your document’s accessibility.
Google Docs functions similarly to Word, with the heading structure options in a dropdown menu in the main menu bar.