HTML Dialog Tag | Dialog Tag | HTML <dialog> Tag Tutorial by WDH

HTML Dialog Tag


Define :
It specifies or defines a dialog box or subwindow.
It easy to create popup dialogs and modals on a web page.
For example :


Output :

Browser Support :
Element
chrome
firefox
microsoft edge
<dialog>
37.0
79.0
53.0

Attributes
Attribute
value
description
open
open
It Specifies that the dialog element is active and that the user can interact with it
 
Global and Event Attributes
This tag also supports the Global and Event Attributes in HTML.