The dialog element — HTMLcat
htmlcat.net · saved by 1 readers
<dialog> gives modal UI a top layer, focus handling, Escape-to-close behavior, and a real semantic element. JavaScript only needs to open and close it. Use a dialog only for an actual dialog. Provide a visible close action, label it clearly, and test keyboard focus instead of assuming the native element solves every accessibility detail. HTMLcat ©2026 — A side project by Marco Mezzavilla See also wiregum.com, aura.glitch.dance, and pin.garden