Html 5 dialog Tag: defines special terms or phrases, and dialog tag
In html5, the <dialog> label defines special terms or phrases. Here, the host introduces the <dialog> label usage, <dialog> label attributes, and <dialog> label Application Instances in detail.
<Dialog> label usage:
Defines a dialog box or window.
<Dialog> label attributes:
Attribute |
Value |
Description |
Open H5 |
Open |
Specifies that the dialog element is active and the user can interact with it. |
H5: new attribute in HTML5.
<Dialog> tag application instance:
<Table border = "1"> <tr> <th> January <dialog open> This is the dialog window that opens </dialog> </th> <th> February </th> <th> March </th> </tr> <td> 31 </td> <td> 28 </td> <td> 31 </td> </tr> </table>
Which browsers support <dialog> labels?
Currently, only Chrome and Safari6 support the <dialog> label.
HTML5 had the <dialog> Label Standard in 2013. However, up to now, there are still less than half of browsers (chrome, opera) supported.