HTML5 | <dialog> Tag

The <dialog> tag is used to specify the dialog box or window. This tag is used to create popup dialog and modals on a web page. This tag is new in HTML5.


<dialog open> Contents... </dialog>

Attributes: This tag accept single attribute open which is used to specify the dialog element is active and the user the user can interact with tag element.


<!DOCTYPE html>
        <title>dialog tag</title>
            dialog {
            body {
        <h1><dialog> tag</h1>
        <dialog open>Welcome to GeeksforGeeks</dialog>

dialog tag

Supported Browsers: The browser supported by <dialog> tag are listed below:

  • Apple Safari 6.0
  • Google Chrome 37.0
  • Firefox 59.0
  • Opera 24.0

Note:: It is not supported by Internet Explorer.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :
Practice Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.