HTML Tag







googletag.cmd.push(function() { googletag.display('div-gpt-ad-1422003450156-2'); });




HTML <title> Tag



Previous
Complete HTML Reference
Next



Example


Define a title for your HTML document:



<!DOCTYPE html>
<html>

<head>
 
<title>HTML Reference</title>
</head>

<body>
The content of the document......
</body>

</html>

Try it Yourself »



Definition and Usage


The <title> tag is required in all HTML documents and it defines the title of the document.


The <title> element:



  • defines a title in the browser toolbar

  • provides a title for the page when it is added to favorites

  • displays a title for the page in search-engine results




Browser Support



















Element
<title> Yes Yes Yes Yes Yes








googletag.cmd.push(function() { googletag.display('div-gpt-ad-1493883843099-0'); });






Tips and Notes


Note: You can NOT have more than one <title> element in an HTML document.


Tip: If you omit the <title> tag, the document will not validate as HTML.




Differences Between HTML 4.01 and HTML5


NONE.




Global Attributes


The <title> tag also supports the Global Attributes in HTML.




Related Pages


HTML tutorial: HTML Head


HTML DOM reference: Title Object




Default CSS Settings


Most browsers will display the <title> element with the following default values:




title {
    display: none;
}





Previous
Complete HTML Reference
Next

Popular posts from this blog

Chat program with C++ and SFML

Function to Return a JSON Like Objects Using VBA Collections and Arrays

Will my employers contract hold up in court?