Digital accessibility is no longer a peripheral concern for web developers but a legal and ethical imperative. In the United Kingdom, the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018 mandate that all public sector digital services must be perceivable, operable, understandable, and robust. As the government continues to digitize essential services, the expertise of frontend developers becomes the primary line of defense against digital exclusion for the estimated 16 million people in the UK living with a disability.
The Technical Foundation: Semantic HTML as a Structural Necessity
At the heart of the discussion was the concept of semantic HTML—the practice of using HTML elements that convey the meaning and purpose of the content they contain. Dilwoar Hussain, Lead Frontend Developer at the Ministry of Housing, Communities and Local Government, explained that the web is built on two types of blocks: generic elements like <div> and <span>, which carry no inherent meaning, and semantic elements like <nav>, <header>, and <button>, which inform the browser and assistive technologies exactly what the content represents.
Hussain emphasized that choosing the correct elements is essential for screen readers to interpret page hierarchy. When a developer uses a <div> to create what looks like a button, a screen reader may only see it as generic text, leaving a visually impaired user unable to interact with the site. Conversely, using a <button> element automatically provides the necessary focus states and keyboard interaction patterns required for accessibility.
James Gordon, Senior Frontend Developer at the DWP, noted that modern web development often suffers from a "hangover" of over-relying on JavaScript to mimic standard browser behaviors. Gordon cited the example of an image functioning as a link through a JavaScript click event. While this may work for sighted users, it remains invisible to assistive technology unless extensive manual labeling is applied. "By writing your HTML semantically and enhancing it later with JavaScript, you can serve a more diverse user group from the start," Gordon stated.
Chronology of Accessibility Standards in the UK Public Sector
The focus on semantic code is part of a decade-long evolution in UK digital standards. The timeline of this progression reflects an increasing sophistication in how the government approaches the user experience:
- 2012: The launch of GOV.UK and the original Government Digital Service (GDS) Design Principles, which prioritized "Building for Everyone."
- 2018: The introduction of the Public Sector Bodies Accessibility Regulations, aligning UK law with the Web Content Accessibility Guidelines (WCAG) 2.1 Level AA.
- 2020: All public sector websites were required to meet these standards and publish accessibility statements.
- 2024-2025: Transition toward WCAG 2.2 standards, which include new criteria for focus appearance, target size, and redundant entry, placing even greater emphasis on the frontend developer’s role.
Michael Cheung, Senior Front-end Developer at NHS England, highlighted that semantic HTML provides "accessibility for free." By adhering to official specifications from organizations like the W3C, developers ensure that their code is "robust"—the fourth pillar of WCAG—meaning it can be interpreted reliably by a wide variety of user agents, including older screen readers and emerging voice control technologies.
Strategies for "Accessibility from the Start"
A recurring theme among the panelists was the rejection of "retrofitting" accessibility. Instead, the developers advocated for a workflow where accessibility is integrated into the earliest stages of the development lifecycle.
Holly Blues, Front-end Developer at DWP Digital, explained that their team adopts a holistic approach where everyone from the Product Owner to the Quality Assurance (QA) tester is responsible for accessibility. By using the GOV.UK and DWP Design Systems—pre-tested libraries of accessible components—developers can focus on complex user journeys rather than reinventing the wheel for basic elements like input fields or navigation bars.
The panel identified several key practices for maintaining high standards without over-relying on automated tools:

- Manual Keyboard Testing: Navigating a site using only the Tab, Enter, and Space keys to ensure all interactive elements are reachable and functional.
- Browser DevTools: Utilizing the "Accessibility Tree" within browser developer tools to inspect how the DOM (Document Object Model) is being exposed to assistive technology.
- High-Contrast and Zoom Testing: Ensuring that layouts do not break when text is resized to 200% or when users employ high-contrast modes.
- Early Collaboration: Flagging potential accessibility blockers during the design phase before a single line of code is written.
David Biddle, Frontend Developer at GDS, noted that semantic elements provide inherent browser behaviors. For instance, interactive elements are focusable by default when the correct tags are used. "Using the right semantic elements will provide a lot of cues to assistive technology, and browsers will provide some useful behavior as well," Biddle explained.
Handling Dynamic Content and Complex Interactivity
As web applications become more dynamic, the challenge of maintaining accessibility increases. Elements like modals, carousels, and accordions often require JavaScript to function, which can create barriers if not handled correctly.
Dilwoar Hussain pointed to the "progressive enhancement" technique as a solution. This involves building the core functionality of a feature in a way that works without JavaScript, then adding the interactive layer for browsers that support it. For an accordion component, the non-JavaScript version might show all content by default, ensuring the information is still reachable. When JavaScript is active, the developer uses ARIA (Accessible Rich Internet Applications) attributes like aria-expanded="true" or false to communicate the state of the component to screen readers.
Michael Cheung emphasized the importance of using established resources like the WAI-ARIA Authoring Practices Guide (APG). For components not found in the NHS or GDS design systems, these patterns provide a blueprint for how complex widgets—such as tab lists or dialog boxes—should behave. Cheung also highlighted the role of the NHS Accessibility Lab, where developers test their code on various physical devices and assistive technologies to ensure real-world usability.
Supporting Data and the Impact of Non-Compliance
The emphasis on semantic HTML is supported by industry-wide data. The 2024 "WebAIM Million" report, an annual accessibility analysis of the top one million homepages, found that 95.9% of homepages had detectable WCAG 2 failures. The most common issues included low-contrast text (81%), missing alt-text for images (54.5%), and empty links (44.7%). Crucially, many of these failures stem directly from the improper use of HTML tags.
In the public sector, the stakes are even higher. A failure to provide an accessible service can lead to:
- Legal Challenges: Enforcement by the Central Digital and Data Office (CDDO) and the Equality and Human Rights Commission (EHRC).
- Reputational Damage: Loss of public trust in essential services.
- Increased Costs: Retrofitting accessibility into a finished product is significantly more expensive than building it correctly the first time.
Analysis of Broader Implications
The insights shared by the panel suggest a maturing of the frontend profession within the UK government. There is a clear shift away from viewing accessibility as a "checklist" and toward viewing it as a hallmark of high-quality engineering.
By prioritizing semantic HTML, developers are not just helping users with disabilities; they are improving Search Engine Optimization (SEO), as search engine crawlers rely on the same semantic cues as screen readers to index content. Furthermore, semantic code is generally cleaner and easier to maintain, reducing technical debt over the long term.
The discussion also underscored the importance of the UK’s "Design System" ecosystem. The GOV.UK Design System has become a global gold standard, adopted and adapted by governments worldwide. By sharing their methodologies through the "Unlocking Accessibility" series, these developers are contributing to a broader culture of transparency and shared learning that extends beyond the borders of the UK.
As the digital landscape evolves with the integration of AI and more complex web frameworks, the fundamental principles discussed by the panel—semantic clarity, keyboard operability, and progressive enhancement—remain the most effective safeguards for a truly inclusive internet. The consensus among the developers was clear: while tools and plugins have their place, there is no substitute for a deep understanding of the core languages of the web.
