Menu

Semantic HTML and Page Structure in Angular: Fixing Openbook's Foundation
📰

Semantic HTML and Page Structure in Angular: Fixing Openbook's Foundation

DEV Community: angular·Hitesh Gharate·1 day ago
#zozsPBgj
#devtoangular#devto#dev#enter#exit
Long article (1342 words) — no AI summary yet.
Reading 0:00
15s threshold

Part 2 of a series on Angular accessibility. Part 1 introduced Openbook, a fictional demo app that starts out deliberately inaccessible.

In Part 1, I read through Openbook's code and listed what I expected to go wrong. This post starts fixing it, beginning with the foundation: the HTML itself. Most of the changes are small, and they make the biggest difference to keyboard and screen reader users, because everything else builds on them.

Repo: openbook-angular-a11y

Before: post-01-baseline

After: post-02-after

As in Part 1, I haven't run an automated scanner or a screen reader against this version. The changes below follow from how native HTML elements and ARIA attributes are defined to behave.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.