Skip to content
Related Articles

Related Articles

HTML | dialog open Attribute

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 27 Dec, 2021

The HTML <dialog> open Attribute is used to specify whether the dialog box should be open or not. It is new in HTML5. It is a Boolean Attribute.
If open, it means the user can interact with it.


<dialog open>

Attribute Values: It accepts two values i.e. true|false which specifies whether a dialog window should be open or not. By default, it is false.

  • true:It states that the dialog window is open.
  • false: It states that the dialog window is not open.


<!DOCTYPE html>
        body {
            text-align: center;
     HTML Dialog open Attribute
    <dialog id="Dialog"
        Welcome to GeeksforGeeks


Supported Browsers: The browsers supported by HTML <dialog> open Attribute are listed below:

  • Google Chrome 37.0 and above
  • Firefox 53.0 and above
  • Opera 24.0 and above
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!