The Foundation of Inclusive Architecture: Semantic HTML
At the heart of the discussion is the concept of semantic HTML—the practice of using web elements according to their intended meaning rather than their visual appearance. Dilwoar Hussain, Lead Frontend Developer at the Ministry of Housing, Communities and Local Government, defines this as the use of specific building blocks. While generic elements like <div> and <span> provide structural containers, they offer no information to assistive technologies. In contrast, elements such as <nav>, <main>, and <button> provide an inherent roadmap for screen readers and search engines.
The importance of this distinction cannot be overstated. When a developer uses a <div> to create a button, they must manually add keyboard focusability, click handlers, and ARIA (Accessible Rich Internet Applications) roles to make it functional for disabled users. However, by simply using the <button> tag, the browser automatically provides these features. James Gordon, Senior Frontend Developer at the Department for Work and Pensions, points out that using non-semantic code—such as an image with a JavaScript click event to mimic a link—creates a "fragile" user experience. While the visual cues may satisfy able-bodied users, screen readers may see only an unlabelled image, leaving the user unable to navigate the service.
This technical philosophy is echoed by Michael Cheung, Senior Front-end Developer at NHS England, who notes that semantic HTML provides "accessibility for free." By adhering to the intended use of elements like <a> for links and <header> for page titles, developers ensure that the accessibility tree—the internal representation of the page used by assistive software—is accurate and navigable without the need for complex, error-prone workarounds.
A Chronology of Digital Accessibility Standards
The current emphasis on semantic HTML and accessible code is the result of a multi-decade evolution in web standards and legal requirements.
- 1999: WCAG 1.0: The World Wide Web Consortium (W3C) released the first Web Content Accessibility Guidelines, setting the groundwork for inclusive web design.
- 2008: WCAG 2.0: A major update introduced the four principles of accessibility: Perceivable, Operable, Understandable, and Robust (POUR).
- 2018: Public Sector Bodies Accessibility Regulations: The UK government mandated that all public sector websites and mobile applications must meet WCAG 2.1 AA standards. This legally compelled departments to prioritize accessibility in their digital transformations.
- 2023: WCAG 2.2: The latest update added new criteria focusing on cognitive disabilities and mobile navigation, further refining the requirements for frontend developers.
- 2025: The Unlocking Accessibility Series: GDS launches its latest educational push to bridge the gap between policy and practical implementation among technical teams.
This timeline illustrates a move away from voluntary "best practices" toward a rigorous, legally enforceable framework. For frontend developers in the public sector, accessibility is no longer a feature request; it is a compliance requirement that carries significant legal and reputational risk.
Shifting Left: Accessibility from the First Line of Code
A recurring theme among the developers is the rejection of "accessibility audits" as the primary means of ensuring quality. Instead, they advocate for integrating accessibility into the development lifecycle from day one. Holly Blues, Front-end Developer at DWP Digital, emphasizes that accessibility is a collective responsibility involving Product Owners, Quality Assurance, and Designers.
To maintain high standards without over-relying on automated plugins, developers are increasingly turning to established design systems. The GOV.UK Design System and the NHS Design System serve as centralized repositories of pre-tested, accessible components. These systems allow developers to implement complex features—like accordions or tabbed interfaces—with the confidence that they have already undergone rigorous accessibility research.

However, tools are not a substitute for manual testing. David Biddle, Frontend Developer at GDS, highlights the importance of using a browser’s built-in DevTools to inspect the accessibility tree. Simple actions, such as navigating a page using only the Tab key or zooming the text to 400%, allow developers to identify barriers that automated scanners might miss. Industry data from the WebAIM Million report—an annual accessibility analysis of the top one million homepages—shows that 95.9% of homepages have detectable WCAG 2 failures. Most of these failures, such as low color contrast or missing alt text, are easily preventable if addressed during the coding phase.
Navigating the Complexity of Dynamic Content
As modern web applications become more interactive, the challenge of maintaining accessibility grows. Dynamic elements like modals, carousels, and live-updating forms often "wrestle control away from the user," as James Gordon describes it. To combat this, developers utilize a combination of progressive enhancement and ARIA attributes.
For example, when building collapsible sections or accordions, Dilwoar Hussain uses aria-expanded and aria-controls to provide real-time feedback to screen reader users. This ensures that when a section is toggled, the user is immediately informed of the change in state. Furthermore, the principle of progressive enhancement ensures that if a user’s browser fails to load JavaScript, the core content remains accessible in a simplified format.
The introduction of the HTML5 <dialog> element has also simplified the creation of modals. David Biddle notes that using semantic elements for complex interactions allows the browser to handle "focus trapping"—the requirement that a keyboard user cannot navigate outside of an active modal until it is closed. Prior to the <dialog> element, developers had to write extensive JavaScript to manage this behavior, which frequently led to "keyboard traps" where users became stuck in a specific part of the page.
Supporting Data and Social Impact
The push for semantic and accessible code is supported by compelling data regarding user behavior and economic impact. A study by the "Click-Away Pound" found that 71% of disabled customers with access needs will leave a website that they find difficult to use. In the context of government services, this "click-away" phenomenon does not just result in lost revenue; it results in citizens being unable to apply for benefits, renew passports, or access healthcare information.
Furthermore, the benefits of accessible code extend beyond the disabled community. Semantic HTML improves Search Engine Optimization (SEO), as search crawlers use the same structural cues as screen readers to index content. It also improves performance; semantic code is generally lighter and faster to parse than "div-heavy" code, leading to better experiences for users on low-bandwidth connections or older devices.
| Feature | Semantic Element | Accessibility Benefit |
|---|---|---|
| Navigation | <nav> |
Allows users to skip directly to menu items. |
| Main Content | <main> |
Defines the primary purpose of the page for screen readers. |
| Buttons | <button> |
Native keyboard support (Enter/Space) and focus management. |
| Lists | <ul> / <li> |
Informs users of the number of items in a group. |
| Modals | <dialog> |
Automatically manages focus and accessibility roles. |
Official Responses and Future Outlook
The consensus among government technical leads is that the UK is currently a global leader in digital accessibility, but there is no room for complacency. The GDS "Unlocking Accessibility" series is part of a broader strategy to foster a culture of continuous learning. By sharing insights across departments, the government aims to create a unified standard of excellence that transcends individual projects.
The implications of this work are far-reaching. As artificial intelligence and voice-activated interfaces become more prevalent, the structural integrity of the underlying HTML will become even more critical. AI agents and voice assistants rely on the same semantic markers that screen readers use to interpret web content. Therefore, the work being done today by frontend developers to "unlock accessibility" is also future-proofing the UK’s digital estate for the next generation of technological innovation.
In conclusion, the transition toward semantic HTML and proactive accessibility is a fundamental shift in how the web is built. It moves the industry away from a "fix-it-later" mentality and toward a model of structural integrity. As the developers from DWP, NHS, and MHCLG have demonstrated, accessible code is not just about compliance; it is about building a digital world that respects the dignity and autonomy of every user. Through the use of robust design systems, manual testing, and a deep commitment to web standards, the UK public sector continues to set a benchmark for inclusive digital service delivery.
