HTML/Elements/title

From Web Education Community Group
< HTML‎ | Elements
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>Title example</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.