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
Advertisement
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.

Advertisement

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


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 15, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com