- Trending Categories
- 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 add document title in HTML?
Use the <title> tag to add document title. The HTML <title> tag is used for indicating the title of the HTML document. The body title is placed between the <head> and the </head> tags.
Example
You can try to run the following code to learn how to add document title in HTML −
<!DOCTYPE html> <html> <head> <title>Title comes here</title> </head> <body> <p>title tag is used for indicating the title of the HTML document. HTML document title is visible via browser’s title bar.</p> </body> </html>
Advertisements