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 | |||||
X | 79 | 37 | 98 | 24 | 15.4 |
Tablets / Mobile | |||||
![]() |
|||||
37 | 37 | 98 | 24 | 15.4 | 3.0 |
Last updated by CSSPortal on: 6th December 2019