HTML dialog tag
Example
Using the <dialog> element:
<dialog open>This is an open dialog window</dialog>
Definition and Usage
The <dialog>
tag defines a dialog box or subwindow.
The <dialog>
element makes it easy to create popup dialogs and modals on a web page.
Attributes
Attribute | Value | Description |
---|---|---|
open | 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 HTML.
Event Attributes
The <dialog>
tag also supports the Event Attributes in HTML.
Comments
Post a Comment