HTML dialog Tag

Last Updated on April 26, 2023 by Roshan Parihar

HTML dialog tag is used to show dialogs or window on the web page.

The dialog contains a boolean value open which we can use when we want to show dialog box. The boolean attribute can be control by using script(like javascript) to make it open or close.


Syntax

Output

This is the heading

This is the dialog paragraph.






List of HTML dialog tag attributes

Sr. No. Details attributes Description
1 open Used to specify whether the details tag content should be open or not. The open attribute does not contains boolean values true or false. we only include open inside <dialog> to make it remain open.

Resources and References of HTML dialog tag

1. HTML living standard
2. W3C project using Github