Open In App
Related Articles

How to define a title for a document using HTML5 ?

Improve Article
Save Article
Like Article

In this article, we will define a title for the document by using the <title> tag. This tag in HTML is used to define the title of the 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.


<title> Title name </title>


<!DOCTYPE html>
        Define a title 
        for the document
        body {
            text-align: center;
        h1 {
            color: green;
        HTML5: How to define a
        title for the document?
    <p title="GeeksForGeeks">
        Welcome to GeeksforGeeks!


Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
Last Updated : 02 Jun, 2020
Like Article
Save Article
Similar Reads
Related Tutorials