The <dialog> creates dialog box. It helps in creating components like popup, inspector or modal window in the same browser window.
This is mainly used as a part of application with whom the user can interact.
If you do not code the open attribute with this tag , then you must use JavaScript to open or close the dialog box. The HTMLDialogElement contains a number of methods for this purpose –