79
HTML Dialog Tag
HTML <dialog> tag is used to create a new popup dialog on a web page. This tag represents a dialog box or other interactive component like window.
The <dialog> element uses a boolean attribute called open that activate element and facilitate user to interact with it.
HTML dialog is a new tag introduced in HTML5.
HTML dialog tag example
Output:
HTML dialog tag also supports global and event attributes in HTML.
Supporting Browsers
Element | ![]() | ![]() | ![]() | ![]() | ![]() |
<dialog> | Yes | Yes | Yes | Yes | Yes |
Next TopicHTML dir Tag