HTML <dialog> openAttribute

HTML dialog 标签参考手册HTML <dialog> Tag

Examples

Use the <dialog> element:

<table border="1">
<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>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently only Chrome and Safari 6 support the open attribute.


Definition and Usage

The open attribute is a boolean attribute.

When this attribute is used, it specifies that the dialog element is active and can interact with the user.


Differences between HTML 4.01 and HTML5

The <dialog> tag is new in HTML5.


Differences between HTML and XHTML

In XHTML, attribute minimization is not allowed, and the open attribute must be defined as: <dialog open="open">.


Syntax

<dialog open>


HTML dialog 标签参考手册HTML <dialog> Tag Other Extensions