- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we define a dialog box in HTML?
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> <head> <title>HTML dialog Tag</title> </head> <body> <h3>Tutorialspoint</h3> <p>We provide tutorials, quizzes, learning videos, etc.</p> <dialog open>Tutorials are free for all</dialog> </body> </html>
Advertisements