HTML/Elements/title

From W3C Wiki
< HTML‎ | Elements
Revision as of 19:15, 30 September 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<title>

The <title> element represents the document's title or name.

Point

  • Authors should use titles that identify their documents even when they are used out of context, for example in a user's history or bookmarks, or in search results.
  • The document's title is often different from its first heading, since the first heading does not have to stand alone when taken out of context.


HTML Attributes

See global attributes.


Examples

Example A

[try it]

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML Document</title>
</head>
<body>
<p>The HTML content</p>
</body>
</html>

Title01.png

HTML Reference

The HTML5 specification defines the <title> element in 4.2.2 The title element.