HTML5 Dialog Tag Tutorial

HTML5 Dialog Tag

It was introduced in HTML5 and used to create a modal window or pop-up window on the web page to show the information. The dialog box is hidden by default and it is activated through the open attribute;

Dialog Attributes

Attribute Value Description
open open It specifies the active dialog box and the user can interact with it.

General Syntax

Try it now

Source Code : Output