The <title> element defines the document title shown in the browser tab (or title bar), bookmarks, and often in search results. It contains text only — any markup inside is treated as plain text.
Place exactly one <title> inside <head>. It is metadata, not a visible page heading (use <h1> for that). Pair it with other head metadata such as <meta> when you need a description or charset.
Baseline · Widely available.
Not deprecated. Required for a complete HTML document. Stable across browsers since about July 2015 (and much earlier in practice).
Always close </title>.
Both tags are required. Leaving off the end tag can make the browser ignore the rest of the page.
Accessibility & SEO tip.
Put the unique page topic first, then the site name. Keep titles unique per page and roughly under 55–60 characters so search snippets stay clear.
Syntax
HTML Syntax
syntax.html
<title>Page topic - Site name</title>
Both start and end tags are required. Parent must be a <head> that has no other <title>. Content is text (not inter-element whitespace only).
Reference
Attributes
The <title> element has no element-specific attributes — only global attributes.
Dynamic title changes may need an ARIA live region to be announced.
How It Works
Put the status first (“2 errors”) when the page state matters.
Keep the page name so context stays clear.
Update on the server or with script after validation fails.
Remember: screen readers may not announce a live title change alone — use a live region for critical alerts when needed.
Edge Cases & Pitfalls
Most title problems are missing tags, duplicate site-wide titles, or stuffing keywords.
close
Never omit </title>
Without the end tag, browsers may treat the following markup as part of the title and break the page.
unique
One unique title per page
Duplicate or near-duplicate titles across your site confuse users and search results. Vary the page-specific part.
seo
Avoid keyword blobs
A list of unrelated words does not help rankings. Write a natural, descriptive phrase with the important words early.
markup
Text only inside title
Do not put links, bold tags, or other HTML inside. They will not style the tab — they show as characters.
Compatibility
Browser Support
The <title> element is core HTML metadata in every browser. It is not a Node.js, Deno, or Bun API.
✓ Baseline · Widely available
<title>
Widely available since about July 2015 (and long before). Every major browser shows the title in the tab, window, and history UI.
99%Global support (approx.)
Google ChromeAll
Full support
Mozilla FirefoxAll
Full support
Apple SafariAll
Full support
Microsoft EdgeAll
Full support
OperaAll
Full support
Samsung InternetAll
Full support
Internet ExplorerAll
Supported
<title>Universally supported
Bottom line: Required on every HTML page. Keep one closed title in head, unique and descriptive for each URL.
Remember
Key Takeaways
Role:<title> sets the tab / bookmark / search title text.
Placement: exactly one inside <head>, always with a closing tag.
Writing: unique page topic first, site name second, no keyword stuffing.
Not h1:title is metadata; the visible heading stays in the body.
One line: put a unique, closed <title> in <head> with the page topic first.
UA style
Default CSS Settings
title is metadata in head — it is not rendered in the page body, so there is no useful visual UA stylesheet:
default.css
head title {
display: none; /* not shown in the document body */
}
Styling the browser chrome (tab text) is not possible with page CSS. Change the title by editing the element text (or updating it with script).
Frequently Asked Questions
The title element sets the document title shown in the browser tab, bookmarks, and often in search results. It belongs in the head, not in the visible page body.
Always inside <head>, and only once per document. Do not put title in the body.
title is metadata for the tab and SEO. h1 is a visible heading on the page. You usually need both, and they can say similar things without being identical.
Aim for a clear phrase, roughly under 55–60 characters so search engines do not cut off the important part. Put the unique page topic first.
No useful markup. Any tags inside title are treated as plain text, so write text only.
No. It is Baseline, required for a proper HTML document, and widely available.