HTML dialog - how to use <dialog> tag

The HTML <dialog> tag is used to define a dialog box and can be used to create modal popups on a web page.

Attributes

The dialog tag supports the global and event attributes.

open
Defines whether the dialog should be visible (open) to the user

Examples:

<dialog open> <p>The HTML dialog tag is used to define a dialog box and can be used to create modal popups on a web page.</p> </dialog>