Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML title Tag

  • Difficulty Level : Basic
  • Last Updated : 17 Mar, 2022

The <title> tag in HTML is used to define the title of HTML document. It sets the title in the browser toolbar. It provides the title for the web page when it is added to favorites. It displays the title for the page in search engine results.
Note: You can NOT have more than one <title> element in an HTML document.

Syntax: 
 

<title> Title name </title>

Example: 
 

HTML




<!DOCTYPE html>
<html>
    <head>
        <title>title Tag</title>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><title> Tag</h2>
         
 
<p>Welcome to GeeksforGeeks!</p>
 
 
    </body>
</html>                   

Output: 
 

Supported Browser: 
 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

 

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!