This example uses the native HTML <dialog> element for built-in accessibility and focus management.
<dialog>
This is a standalone modal dialog. It traps focus inside the window while open and can be closed by clicking the button below, the 'X' icon, or pressing the Esc key.