Tutorialspoint.dev

HTML | title Tag

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 display the title for the page in search-engine results.

Syntax:

<title> Title name <title>

Example:

<!DOCTYPE html> 
<html>
    <head>
        <title>title Tag</title>
        <style>
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><title> Tag</h2>
        <p>Welcome to GeeksforGeeks!</p>
    </body>
</html>                    

Output:
title tag

Supported Browser: The browser supported by <title> tag are listed below:

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


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter