{
  "id": 23326087,
  "title": "Semantic HTML and Page Structure in Angular: Fixing Openbook's Foundation",
  "url": "https://urgent.news/2026/12/03/semantic-html-and-page-structure-in-angular-fixing-openbooks",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-03T20:01:38.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/hitesh_dev_io/semantic-html-and-page-structure-in-angular-fixing-openbooks-foundation-7ei"
  },
  "original_language": null,
  "account": "In Part 2 of a series on Angular accessibility, this article focuses on fixing the foundation of the Openbook demo app, which starts out with significant accessibility issues. The changes primarily revolve around the HTML structure itself.\n\nOriginally, Openbook's page had no landmarks, such as header, nav, and main elements. This made it difficult for screen readers to navigate the page. The solution introduced a header with a logo and a nav section labeled \"Main\" using the aria-label attribute. The main section was given an id of \"main\" with a tabindex of \"-1\" to allow focusing it via code.\n\nAdditionally, a skip link was added to allow keyboard users to directly jump to the main content, bypassing the navigation items. The link itself was styled to become visible when focused and is hidden initially.\n\nClickable div elements were replaced with native anchor tags for navigation. This change made the links focusable, operable with Enter key, and properly announced by screen readers. Aria-current attribute was added to indicate which link is currently active.\n\nIcon buttons were also updated. Previously, they contained only SVGs with no accessible name, which screen readers couldn't describe. Now, the buttons have an aria-label attribute that conveys the purpose of the button, such as \"Notifications\". The SVGs were made focusable but hidden from screen readers, ensuring only the button text is announced.",
  "summary": "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,…",
  "summary_source": "publisher",
  "key_points": [
    "Openbook app had significant accessibility issues due to lack of HTML landmarks.",
    "Added header, nav, and main elements with aria-label for improved screen reader navigation.",
    "Implemented skip link for keyboard users to bypass navigation and jump to main content."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}