html tutorial - Title tag in HTML - html5 - html code - html form

Definition of <title>tag:

  • The <title> tag is used to define the title of the HTML document.
  • To show the title of the page in browser title bar the <title> tag is used.
  • The <title> tag belongs to meta content category.
  • The <title> tag supports Global Attributes.
title tag

Syntax for <title> tag :


Sample coding for <title> tag:

<!DOCTYPE html>
        <title>The title of the document</title>
            Welcome to Wikitechy.

Code Explanation for <title>tag:

  1. <title> tag is used to display the title of the html document.

Sample Output for <title>tag:

  1. The term “The title of the document” shown in the top of the browser window.

Browser Support for <title> tag:

Yes Yes Yes Yes Yes

Tips and Notes:

  • <title>tag cannot appears more than one time in a document.
  • If <title>not presents in a document that will not be validate as HTML.
  • <title>tag display the title in the search-engine result.