W3Schools.com

HTML <title> Tag

Example

Define a title for your HTML document:

<html>

<head>
<title>HTML 4.01 Tag Reference</title>
</head>

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

</html>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <title> tag is supported in all major browsers.


Definition and Usage

The <title> tag defines the title of the document.

The <title> element is required in all HTML/XHTML documents.

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

Tips and Notes

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


Differences Between HTML and XHTML

NONE


Standard Attributes

DTD indicates in which HTML 4.01/XHTML 1.0 DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

The <title> tag supports the following standard attributes:

Attribute Value Description DTD
dir rtl
ltr
Specifies the text direction for the content in an element STF
lang language_code Specifies a language code for the content in an element STF
xml:lang language_code Specifies a language code for the content in an element, in XHTML documents STF

More information about Standard Attributes.


Event Attributes

The <title> tag does not support any event attributes.

More information about Event Attributes.


Related Pages

HTML tutorial: HTML Head


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE