Document Metadata

HTML <title> element

Names the document, typically used in the browser tab. Its content is text. Use a concise, distinctive document title to help users identify tabs, history entries and search results. It differs from the visible h1 and the title attribute used for advisory information. It accepts global HTML attributes; individual global features may be inapplicable or restricted.

Formal Syntax & Structure

html syntaxhtml
<title>Page name</title>

Return Value

HTMLTitleElement

Content model: Text only.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <meta charset="utf-8">    <title>Reading notes</title>  </head>  <body>    <h1>Reading notes</h1>    <p>Chapter one is finished.</p>  </body></html>
HTML Reference