<Dialog> Element एक Dialog Box को बनाने के लिए उपयोग किया जाता है जैसे कि एक Popup या Modal Window जो की Active Browser Window के भीतर प्रदान की जाती है.
एक <dialog> Element के Behavior को Define करने के लिए आमतौर पर JavaScript का उपयोग करने की आवश्यकता होती है.
यह एक Window या एक Dialog box को Define करता है.
<dialog>
content
</dialog>
<!DOCTYPE html>
<html>
<head>
<style>
table, th, td {
border: 2px solid red;
}
</style>
</head>
<body>
<p><b>Note:</b> The dialog tag is currently only supported in
Chrome version 37+, Safari 6+ and Opera 24+.</p>
<table>
<tr>
<th>Sunday<dialog open>This is an open dialog window</dialog></th>
<th>Monday</th>
<th>Tuesday</th>
</tr>
<tr>
<td>30</td>
<td>28</td>
<td>26</td>
</tr>
<tr>
<td>30</td>
<td>28</td>
<td>26</td>
</tr>
<tr>
<td>30</td>
<td>28</td>
<td>26</td>
</tr>
<tr>
<td>30</td>
<td>28</td>
<td>26</td>
</tr>
</table>
</body>
</html>