<

HTML <dialog> Tag

The <dialog> tag defines a dialog box or window.The <dialog> element makes it easy to create popup dialogs and modals on a web page.

Attributes



Attribute Value Description
open open Specifies that the dialog element is active and that the user can interact with it

Example



<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
    border: 1px solid black;
}
</style>
</head>
<body>

<p><b>Note:</b> The dialog tag is not supported in Edge/Internet Explorer.</p>

<table>
  <tr>
    <th>January <dialog open>This is an open dialog window</dialog></th>
    <th>February</th>
    <th>March</th>
  </tr>
  <tr>
    <td>31</td>
    <td>28</td>
    <td>31</td>
  </tr>
</table>

</body>
</html>

















© copyright 2017-2022 Completedone pvt ltd.