dialog tag



Dialog tag is used to show the conversation between two persons.
It has been deprecated from HTML5.
<dialog> <dt>Name</dt> <dd><Text></dd> </dialog>

Example Code:

Result :

John, do you have pen
No, I dont have a pen
  • <dt> and <dd> should be used inside this tag in order to show the difference between conversations.
  • <dt> is used to denote the name of the person.
  • <dd> is used to mention the conversation between the persons.
It is newly introduced in HTML5 and it is not available in earlier versions of HTML.

Ask Questions

Ask Question