semantic-html-first
Installation
SKILL.md
Semantic HTML First
Semantic HTML is interface infrastructure. Native elements carry keyboard support, form participation, disabled behaviour, and accessibility semantics without a second implementation.
Defaults
- Start with the native element that matches the interaction.
- Use ARIA to refine native semantics, not to rebuild them on
div/span. - Prefer explicit composition over magic
asChildpolymorphism when it obscures the real element. - Style states with native pseudo-classes (
:disabled,:checked,:open,:invalid) before paralleldata-*state systems. - If a library primitive exists, verify it still renders a real semantic element in the DOM.