HTML <dialog> Tag

Description


The HTML <dialog> HTML element indicates a part of an application that the user can interact with to perform a task. For example a dialog box, inspector, or window.

Properties

Permitted Parents
Any element that accepts flow content
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<dialog open>
<p>The open attribute has been added, which means that the dialog is already open upon the page loading.</p>
</dialog>

Attributes

Attribute Definition
open Specifies that the dialog element is active and that the user can interact with it

Global Attributes

The <dialog> tag also supports the Global Attributes in HTML5

Event Attributes

The <dialog> tag also supports the Event Attributes in HTML5

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
XX375324X
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
37375324XYes

Last updated by CSSPortal on: 6th December 2019