HTML <title> (Document Title) Tag

❮ Previous Reference Next ❯


<!DOCTYPE html>
  <title>Title of the document</title>
  <h1>Heading of the document</h1>
  <p>Paragraph of the document</p>


The <title> element encloses the title of an HTML document.

It must occur within a document’s <head> element and must be present in all valid documents.

There should be only a single occurrence of this element. Meaningful titles are very important because they are used for bookmarking a page, are occasionally used by browsers to label locally saved pages, and are often used by search engines attempting to index the document.



Version: HTML 2, 3.2, 4, 4.01, 5

Standard Syntax


Browser Support


Global Attributes

The <title> element also supports the Global Attributes in HTML.

By Default CSS Value(s)

Most of the browsers will display the <title> element with the following by default value(s)

title {
  display: none;

Related Tags:

<base>, <head>, <link>, <meta> and <style>
❮ Previous Reference Next ❯