4 min read · Free · No login needed
The <title> tag sits inside the <head> and sets the text shown on the browser tab. But it does much more than that — it is also the blue clickable headline Google shows in search results, and the name used when someone bookmarks your page.
Of all the tags on a page, the title carries the most weight for search engines. When Google decides what your page is about, it looks at the title first. A page with a good title can outrank a page with better content but a vague title like "Home" or "Untitled".
Notice that the title is never shown inside the page itself. Visitors only see it in the tab, in search results, and in bookmarks — which is exactly why it is so easy to forget, and so important to get right.
The <title> tag sets the text shown in the browser tab, in the bookmarks list, and in search results. It sits inside the <head>, and every page must have exactly one. It is invisible on the page itself — but it is the first thing people see in Google, so it matters more than most visible text.
<head> <title>HTML Tutorial — KAMALDNP Academy</title> </head>
The title also appears in the browser history and when someone shares your page on WhatsApp or Facebook. A clear title tells people what the page is about before they even open it.
<title> is not the same as the <h1>. The title is for the browser tab and search results; the h1 is the big heading people see on the page itself. They can be similar, but they do different jobs — and a page can have a good title and a different, longer h1.<title>HTML Page Title — KAMALDNP Seekho</title> — sets the text on the browser tab. This line lives in the <head>, so it never shows inside the page itself.<h1>Welcome to my page</h1> — the big heading visitors actually see on the page. It is different from the title: the title is for the tab, the h1 is for the page.<p>The title above is set in the head…</p> — a normal paragraph. It proves the point of the example: the title text appears in the tab, not here in the body.<!DOCTYPE html>
<html>
<head>
<title>HTML Page Title — KAMALDNP Seekho</title>
</head>
<body>
<h1>Welcome to my page</h1>
<p>The title above is set in the head — check the browser tab.</p>
</body>
</html>
Change the code below and press Run to see the result instantly. No file to save, no login needed.
The questions learners ask most about this lesson — read the question, then open it to see the answer.
It sets the text on the browser tab, the headline Google shows in search results, and the name used for bookmarks.
Keep it under 60 characters, because longer titles get cut off in search results.
No, the title is for the tab and search results, while h1 is the big heading visitors see on the page itself.
AI can write code for you, but it cannot think for you. When you learn HTML yourself, your brain builds the real skill: you understand why a page looks the way it does, you can fix it when it breaks, and you can answer it in an exam or an interview without help. That is the skill that gets you a job — not a copied answer.
Finish all 35 lessons, pass the test (80%), pay ₹10 and get your certificate.
Take the testPrefer watching? Video courses teach the same topics step by step.
Free tutorials teach you the basics. Our paid courses add live projects, mentorship and a certificate.
Browse all coursesAsk about courses, website & more
Request human callback:
Please log in to download. You will stay on this page after logging in!
New here? Register now →