HTML CSS examples for HTML Tag:dialog
The open attribute is a boolean attribute to sets if the dialog element is open and that the user can interact with it.
In XHTML, the open attribute must be defined as <dialog open="open">.
The following code shows how to use the <dialog> element:
<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; } </style><!--from w ww . j av a2 s . c om--> </head> <body> <table> <tr> <th>January <dialog open>This is an open dialog window</dialog></th> </tr> <tr> <td>31</td> </tr> </table> </body> </html>