title ElementThe title element is declared by the XHTML 1.1 Structure Module
Elements in the Structure Module are:html | head | title | body
The title element within the head contains a title for the document.
This title is not usually displayed on the page itself but is instead commonly placed in the title bar of the window or
tab containing the document and is often used by a search engine when classifying and showing information
about a page it has found. The page's title will often also be the default text used when a page is bookmarked,
so it is wise to consider this when thinking of of a suitable title for your page.
This example shows the title element within the context of an XHTML document.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB">
<head>
<title>Page Title</title>
</head>
<body>
<h1>Page Title</h1>
<!--Your page content goes here-->
</body>
</html>
There are no #REQUIRED attributes on the title element.
There are no specific attributes declared on the title element.
title element are listed below:dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]title element is:
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
titletitlehead