Open In App
Related Articles

HTML title Tag

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

The <title> tag in HTML is used to define the title of an HTML document.

Important Points :

  • The title tag is used to give the title to the webpage and it should be the text only.
  • You can NOT have more than one <title> element in an HTML document.
  • It is recommended to choose a more detailed and descriptive title rather than opting for a brief one- or two-word title.
  • A page’s title, essential for Search Engine Optimization (SEO), impacts how search engines rank pages in search results.

Syntax: 

<title> Title name </title>

Example: 1 

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 1 and above
  • Edge 12 and above
  • Firefox 1 and above
  • Opera 15 and above
  • Safari 1 and above

Last Updated : 22 Dec, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads