Home Tutorial Html Html5 HTML5 title tag, Example of <title> tag in html5

 
 

HTML5 title tag, Example of <title> tag in html5
Posted on: September 15, 2010 at 12:00 AM
In this discussion we will inform you about the <title> tag in html5 document.

HTML5 title tag, Example of <title> tag in html5

In this discussion we will inform you about the <title> tag in html5 document. This tag is used for defining the title of the documents and contains the meta content of the document. The content of the <title> tag is not displayed in the browser but displayed in the title bar of the browser. The <title> tag is used within the <head> tag. We can not use more than one <title> in a document.

Declaration Syntax:

The declaration  syntax of the <title> tag is as follows:

<title> The Title of the document </title>

Example: title_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of Title Tag</title>
  </head>
<body>
<p>
       This is example of Title tag.<br>
       The text within the title tag is not shown 
       in the browser.<br>
       It displays on the title bar of browser.
   </p>
</body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4.01

There is no specific attribute of this tag and no difference with html4.01.

Related Tags for HTML5 title tag, Example of <title> tag in html5:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.