An HTML live preview title not showing in browser tab is normally expected behavior, not a mistake in your markup. In the HTML Code Editor, the <title> you write names the document inside the live preview, while the browser tab shows the title of the editor page that contains it.
The way to check your title is simple: download the page and open the saved .html file in its own tab. Below I explain why the two titles differ, how a page title differs from a visible heading, and what to inspect if the downloaded file still shows the wrong label.
Table of Contents

HTML Live Preview Title Not Showing in Browser Tab: The Short Answer
A browser tab shows the title of the top-level document it has loaded. Here, that document is the editor page itself. The product page for the HTML Code Editor describes its live preview as an <iframe> populated through srcdoc, and the HTML Standard defines srcdoc as the content used to construct a document inside that iframe.
That gives you two documents on one screen:
- The outer document: the editor page. Its title is what the browser tab displays, and typing in the code pane does not change it.
- The inner document: the HTML you type, rendered in the preview iframe. Its
<title>belongs to that inner document only.
A valid <title> in your code therefore does its job, but the job happens inside a frame. Editing the framed document does not rename the parent tab. I am describing only this documented editor here, and I am not making a claim about how any other tool is built.
The same idea of a preview sitting beside your code applies elsewhere on the site. The visual CSS editor guide covers the CSS Editor’s sandboxed live preview of a fixed sample page, which is another preview that appears next to the code instead of replacing the page around it.

Page Title Versus Body Heading: Two Different Jobs
A title and a heading look alike in a tiny example, which is why they get mixed up. Here is a full document with fictitious content. Paste it into the editor to follow along.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Recipe</title> </head> <body> <h1>My Recipe</h1> <p>Mix, bake and enjoy.</p> </body> </html>
The <title> element sits in <head> and names the document. MDN describes it as the title shown in a browser’s title bar or a page’s tab, and it holds text only. The <h1> element sits in <body> and is a visible heading inside the page content.
| Element | Placed in | Where you see it | Names the tab when opened as its own page |
|---|---|---|---|
<title> | <head> | Tab or title bar | Yes |
<h1> | <body> | Inside the rendered page | No |
The HTML Standard also notes that a document’s title and its first heading need not be identical. That is useful, because a page title often carries a site name or extra context that would look clumsy as a heading. Compare this pair:
<head> <title>Lemon Cake Recipe | Sample Kitchen</title> </head> <body> <h1>Lemon Cake</h1> </body>
In the editor’s preview you will see the heading Lemon Cake. The longer title is visible as a tab label only once the file is opened as its own page. This page title vs h1 difference is the second reason people think the title is missing: they look for it in the rendered content, where metadata does not appear.

Download the Page and Open It in Its Own Tab
To see the real title, turn the preview document into a top-level document. The editor’s product page documents both the live preview and a Download control, so this check uses only what the editor offers.
- Open the HTML Code Editor and replace its content with the My Recipe example above.
- Look at the preview. You should see My Recipe as a heading and the sentence below it. Then look at the editor’s own browser tab, which keeps its own title.
- Use the editor’s Download control to save the HTML to your computer.
- Open the saved
.htmlfile as its own page. Dragging it into a browser window or using your browser’s open-file command both work. - Read the label on that new tab. It should show My Recipe.
This works because the saved file is no longer inside an iframe. The browser loads it as the top-level document, so the title element in its head becomes the tab title. I would not expect the preview to display the title text itself, since a title is metadata and not page content.
Try one more round to prove the link between source and tab. Change the title to Lemon Cake Recipe | Sample Kitchen, leave the heading alone, download again and open the new file. The tab label changes while the visible heading stays the same. If you are used to pressing a save shortcut, read whether Ctrl+S saves or downloads a file in a browser code editor, so you know which control produces the file you open.
Troubleshooting: HTML Live Preview Title Not Showing in Browser Tab After Download
If you downloaded the file, opened it as its own page and the tab still lacks the expected title, the cause is in the file, not in the preview. Work through these checks in order.
- Is the title inside the head? The element belongs between
<head>and</head>. A title typed into the body is in the wrong place. - Is there only one? The HTML Standard allows no more than one
<title>element per document. Pasting snippets together can leave duplicates. - Does it contain text? A title holds plain text. If it is empty, the browser picks its own label, and that label can vary.
- Is it the latest download? A file saved earlier keeps its old content. Download again after every edit and open the new file.
- Did you open the right file? Similar tabs are easy to confuse, so check the file name in the address bar.
Reading the source beats guessing. If you can search the saved file, this command prints each line that contains an opening title tag, with its line number:
grep -n -i "<title>" saved.html
Here saved.html stands for whatever you named the downloaded file. One matching line inside the head is what you want. No match means the title never reached the file.
If the page came from the WYSIWYG HTML Editor instead, the guide on a downloaded HTML file missing doctype, head and body explains why that export can lack the head element where a title belongs. In that case the title is missing from the file itself, so the preview was never the problem.
What Seeing the Right Tab Title Does and Does Not Prove
A correct tab label confirms one thing: the saved file contains a title element that the browser read as the document title. It proves little else. The HTML Code Editor has a live preview but no validator or linter, so a clean preview does not confirm valid markup. Keep these checks separate:
- Syntax and structure: if you need a conformance check, run the saved file through a separate validator. The editor does not provide one.
- Title quality: a tab has limited width, so put the most distinctive words first and give each page its own title.
- Visible heading: the
<h1>serves readers inside the page and is a separate decision from the title. - Runtime behavior: the preview is a sandboxed frame, so behavior that depends on the top-level page can differ from the saved file opened on its own.
When the saved source is dense, the HTML Beautifier lays it out with readable indentation so you can find the head quickly. It improves layout only. It does not repair invalid markup or check meaning.
Frequently asked questions
Does the title element work inside the HTML Code Editor preview?
Yes, it names the document inside the live preview. That document is separate from the editor page, so the title does not appear on the editor’s browser tab.
Why does my heading show in the preview but the tab name does not change?
The heading is body content and renders inside the preview. The tab shows the title of the top-level document, which is the editor page. Download the file and open it by itself to see your own title.
Can my HTML rename the editor's browser tab?
No. The HTML you type becomes the content of the preview iframe, and editing that framed document does not rename the parent tab. Use a downloaded copy to check your title.
Should the page title and the h1 match?
They do not have to. The HTML Standard notes that a document title and its first heading need not be identical. A title can include a site name or extra context, while the heading names the topic inside the page.
How do I open the downloaded file in its own tab?
Save the file with the editor’s Download control, then drag it into a browser window or use your browser’s open-file command. Once it opens as its own page, its title element names the tab.
The downloaded file still shows the wrong tab label. What should I check?
Check that the title element is inside the head, that there is only one, that it contains text, and that the file is the latest download. Searching the saved source for the title line confirms what the file actually contains.
Will a script that sets the document title change the editor tab?
A script running inside the preview targets the preview document, not the editor page around it, so I would not expect it to rename the tab. To see its effect, test the downloaded file opened on its own.
Next steps
An HTML live preview title not showing in browser tab comes down to two documents: the editor page that owns the tab, and your page inside the preview iframe. Neither mistake is in your markup. Your next step is to paste the My Recipe example into the editor, confirm the heading in the preview, download the file, open it in its own tab and read the label. Then change only the title, download again and confirm that the tab changes while the heading does not.
Related tools and resources on HTML Editor Online:
- HTML Code Editor
- Visual CSS Editor in the Browser: Style With a Live Preview and Know Its Limits
- Ctrl+S in a Browser Code Editor: Does It Save or Download a File?
- WYSIWYG HTML Editor
