HTML <dialog> tag
Examples
Use <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>
<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"
Browser Support
Currently, only Chrome and Safari 6 Support <dialog> tag.
Tag definitions and instructions
<Dialog> tag defines a dialog box, check box or window.
Differences between HTML 4.01 and HTML5
<Dialog> tag is new in HTML5 tags.
Attributes
New: HTML5 new property.
属性 | 值 | 描述 |
---|---|---|
open New | open | 规定 dialog 元素是有效的,用户可以与它进行交互。 |
Global Properties
<dialog> tag supports HTML global properties .
Event Properties
<dialog> tag supports HTML event properties .