What problem does it solve?
This Skill solves the common pain point of writing non-semantic, inaccessible HTML that relies on ARIA hacks, div-soup, and unnecessary JavaScript workarounds, which creates poor experiences for assistive technology users, increases maintenance overhead, and introduces browser compatibility risks.
Core Features & Use Cases
- Native Element Usage: Enforces using native HTML elements (button, dialog, details, input) over custom ARIA widgets and clickable divs for built-in accessibility and browser behavior.
- Multi-Template Support: Provides consistent rules for writing HTML in plain HTML, ERB, and Svelte templates, covering document structure, accessible forms, interactive patterns, and media elements.
- Use Case: When refactoring a legacy web app's templates, use this Skill to replace all clickable div action triggers with native buttons, add missing associated labels for form inputs, and implement accessible modal dialogs with proper focus management.
Quick Start
Use the html skill to review the attached ERB template and replace all clickable div elements with native button elements while adding associated labels for every form input.