dialog open Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:dialog

Description

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:

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials