Html5 Native Fallback

Build accordions, disclosures, modals, popovers, dropdowns, toggles, progress bars, and page structure from native HTML5 elements — <details>/<summary>, <dialog>, the popover attribute, <button>, <main>/<nav>/<aside>/<article> — instead of div-and-span components driven by JavaScript state machines and hand-written ARIA. Use this whenever generating or reviewing HTML/JSX for any interactive component or page scaffold, and especially when the user asks for an accordion, FAQ, collapsible, expandable section, modal, dialog, drawer, dropdown, menu, tooltip, tabs, toggle, or "make it accessible / keyboard-friendly / work without JS" — even if they don't mention semantics. Also use when reviewing markup that has onclick on divs, href="#" links, or role="button" on non- buttons.

fernandokylas Updated

File contents

fernandokylas/editorial-web-craft/tree/main/skills/html5-native-fallback commit 8a87fd01fd

Frequently asked questions

npx skillmds@latest add fernandokylas/html5-native-fallback