# How do we define a dialog box in HTML?

HTMLWeb DevelopmentFront End Technology

Use the <dialog> tag to define a dialog box in HTML. The following are the attributes −

Attribute
Value
Description
open
open
opens a dialog box and user can interact with it

## Example

You can try to run the following code to learn how to work with <dialog> tag −

<!Doctype html>
<html>
</html>