In 2023, the U.S. government’s official web design system, the U.S. Web Design System (USWDS), made a quiet but profound shift. For its critical Accordion component, a common UI element that expands and collapses content sections, USWDS emphasized a solution built primarily with the native HTML

and elements. This wasn't a whimsical choice; it was a deliberate move to prioritize accessibility, performance, and resilience, challenging the prevailing notion that every interactive component demands a hefty JavaScript framework. The component, which thousands of government websites rely on daily, demonstrates a powerful truth: you can implement a simple component with HTML, delivering a robust user experience without the usual JS overhead.

Key Takeaways
  • Many "interactive" components are over-engineered; HTML and CSS offer robust, native alternatives.
  • HTML-first components inherently provide superior accessibility and keyboard navigation.
  • Reducing JavaScript reliance dramatically improves page load times and core web vital scores.
  • Focusing on semantic HTML builds more resilient, maintainable, and future-proof web experiences.

The Overlooked Power of Semantic HTML

Developers often leap to JavaScript frameworks like React, Vue, or even the Web Components API at the first whiff of interactivity. It's a reflex, ingrained by years of complex web applications and the allure of "modern" tooling. Yet, this reflex frequently leads to over-engineering for simple tasks. We’re consistently reaching for a sledgehammer to crack a nut, adding layers of complexity, build tools, and runtime dependencies where none are truly needed. Here's the thing: HTML, when used semantically and thoughtfully, possesses an inherent power for structuring content and even driving interaction. It’s not just for static pages anymore; it's a declarative language designed to communicate meaning and structure, which is the bedrock of any component.

Consider the humble button. It's not just a clickable rectangle; it's a semantic element,