Articles → HTML 5 → Dialog Tag In Html5
Dialog Tag In Html5
Purpose
Syntax
<dialog open>Text</dialog>
Example
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<dialog open style="background-color: red;">This is an open dialog window</dialog>
</body>
</html>
Try It
Output
Click to Enlarge
Browser Support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
---|
79.0 | 53.0 | 37.0 | Not Supported | 24.0 | 79.0 |