HTML Tag Reference - HTML tag <dialog>








The <dialog> element creates a dialog.

Browser compatibility

<dialog> Yes No No Yes Yes

What's new in HTML5

The <dialog> tag is new in HTML5.

Attribute

open
Value:open
Open the dialog

Global Attributes

The <dialog> tag supports the Global Attributes in HTML.

Event Attributes

The <dialog> tag supports the Event Attributes in HTML.

Example

<!DOCTYPE html>
<html>
<body>

<dialog open>This is an open dialog.</dialog>

</body>
</html>