<dialog> tag is used to define a dialog box such as a popup or modal window that is rendered within the active browser window.
<dialog> element uses an attribute called
open that activate the element.
Below is the example of using the dialog tag. Have a look at it to understand properly how to use it.