title element | title object
[This documentation is preliminary and is subject to change.]
Contains the title of the document.
![]() ![]() |
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
- HTML 4.01 Specification, Section 7.4.2
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | block |
DOM Information
Inheritance Hierarchy
Node
Element
HTMLElement
title
Remarks
The TITLE element can be used only within the HEAD element. Any text between the opening and closing TITLE tags appears in the browser title bar and in the Windows taskbar. In Web pages, "Windows Internet Explorer" is appended to the title. In an HTML Application (HTA), by contrast, only the specified title appears.
To set the title programmatically using script, use document.title instead of setting the innerHTML property of the title object. For more information, see BUG: Script Fails to Change the Document Title of a Web Page.
Examples
This example uses the TITLE element to specify a title for the document.
<HEAD> <TITLE>"Welcome to Internet Explorer!"</TITLE> </HEAD>
Build date: 3/8/2012

