When writing in HTML, the

tag is used to create a dialog box or modal window on a web page. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Hey, I'm a dialog box!

Example result

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • Related information

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the

tag, and a description of each.

Compatibility

Browser, Compatibility, Container tag, Interactive, Web design terms, Web page

  • HTML and web design help and support.