What HTML element defines the title of the document?
Answer
<title>
Answer
<title>
The HTML element that defines a document’s title is <title>.
The <title> element belongs inside the document’s <head>, alongside metadata and links to resources such as stylesheets. Its text commonly appears in a browser tab or window title, and browsers may also use it for bookmarks, history entries, and the default name suggested when saving a page.
A document title is different from a visible heading. An <h1> usually identifies the main heading displayed within the page body, while <title> supplies the document’s browser-facing name. The <head> element is the container for these behind-the-scenes document details; it does not itself provide the title text. The <meta> element supplies metadata rather than the document title.
Another frequent confusion is the title attribute. That attribute can provide supplementary text on many elements and may appear as a tooltip, but it does not define the document’s title. A well-written <title> is concise, descriptive, and distinct for each page, helping both users navigating tabs and systems that index or organize documents.
Source: Wikipedia · fact-checked Aug. 2026