Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <dialog> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML slt;dialog> tags

If you need to implement dialog boxes in HTML, you can use the hashtags.

The label is used to represent a dialog box or other interactive component, and you can refer to the following example:

Using the elements of the .lt;dialog>

<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 out . . .

Browser support

HTML <dialog> tags HTML <dialog> tags HTML <dialog> tags HTML <dialog> tags HTML <dialog> tags

Currently, only Chrome and Safari 6 support the hashtags.


Label definition and instructions for use

The label defines a dialog box, confirmation box, or window.


The difference between HTML 4.01 and HTML5

The label is the new label in HTML5.


Property

New : The new property in HTML5.

Attributes value describe
open New open The Dialog element is specified, and the user can interact with it.

Global properties

The label supports the global properties of HTML.


The event property

The label supports the event properties of HTML.


Read about it

HTML DOM Reference Manual: HTML DOM Dialog Object