0 out of 6 rated this helpful - Rate this topic

title element | title object

[This documentation is preliminary and is subject to change.]

Contains the title of the document.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 7.4.2

Standards information

HTML information

Closing Tagrequired
CSS Displayblock

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ