HTML <dialog> Tag
Definition and Usage
<dialog>
The tag defines a dialog or a sub-window.
<dialog>
The element makes it easy to create pop-up dialog boxes and modal windows on web pages.
See also:
HTML DOM Reference Manual:Dialog Object
Example
Use the <dialog> element:
<dialog open>This is an open dialog window</dialog>
Attribute
Attribute | Value | Description |
---|---|---|
open | open | Specifies that the dialog element is active and the user can interact with it. |
Global Attributes
<dialog>
The tag also supports Global Attributes in HTML.
Event Attributes
<dialog>
The tag also supports Event Attributes in HTML.
Browser Support
The numbers in the table indicate the first browser version to fully support the element.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
37.0 | 79.0 | 98.0 | 15.4 | 24.0 |