HTML <dialog>Tag


Examples

Use the <dialog> element:

<table border="1"> <tr> <th>January <dialog open>This is an open dialog window</dialog></th> <th>February</th> <th>March</th> </tr> <tr> <td>31</td> <td>28</td> <td>31</td> </tr> </table>

Try it Yourself »

Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Element
<dialog> 37.0 Not supported 59.0 6.0 24.0

Tag Definition and Usage Instructions

The <dialog> tag defines a dialog box, confirmation box, or window.


Differences between HTML 4.01 and HTML5

The <dialog> tag is a new tag in HTML5.


Attributes

New: New attribute in HTML5.

Attributes Value Description
openNew open Specifies that the dialog element is active and the user can interact with it.

Global Attributes

The <dialog> tag supportsHTML Global Attributes。


Event Attributes

The <dialog> tag supportsHTML Event Attributes。

Other Extensions