Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML5 <dialog> Tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

Syntax: 

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

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

HTML




<!DOCTYPE html>
<html>  
    <body>
        <h1><dialog> tag</h1>
       
         <!--This is an open dialog Tag-->
        <dialog open>Welcome to GeeksforGeeks</dialog>
    </body>
</html>


Output: 
 

Supported Browsers: 

  • Google Chrome 37.0
  • Edge 79.0
  • Firefox 98.0
  • Opera 24.0
  • Safari 15.4
My Personal Notes arrow_drop_up
Last Updated : 21 Jul, 2022
Like Article
Save Article
Similar Reads