SA-21/06, C-11, Asapur, Varanasi, UP support@kamaldnp.com +91 8318013442
HTML
1. HTML Introduction: What is HTML? Learn with Examples 2. Best Free HTML Editors: Notepad to VS Code for Beginners 3. HTML Basic Structure: Doctype, Head, Body Explained 4. HTML Elements Explained: Tags, Content & Empty Elements 5. HTML Attributes List: href, src, alt, width, title & More 6. HTML Headings h1 to h6: Which Heading Tag to Use When 7. HTML Paragraphs: p Tag, br Line Breaks & pre Text 8. HTML Style Attribute: Colour, Font Size & Alignment 9. HTML Text Formatting Tags: bold, italic, mark & More 10. HTML Comments: How to Add Notes & Hide Code in HTML 11. HTML Colors: Names, HEX, RGB & HSL Colour Codes 12. HTML CSS: Inline, Internal & External Stylesheets 13. HTML Links: a Tag, href, New Tab & Email Links 14. HTML Images: img Tag, src, alt, Width & Formats 15. HTML Favicon: Create & Add a Browser Tab Icon 16. HTML Title Tag: How to Write a Good Page Title 17. HTML Tables: table, tr, th, td, colspan & rowspan 18. HTML Lists: ul, ol, dl & Nested Lists Explained 19. HTML Block vs Inline Elements: div, p, span Explained 20. HTML Div Tag: Group Content & Build Page Layouts 21. HTML Class Attribute: Style Many Elements at Once 22. HTML id Attribute: Unique IDs, Links, CSS & JavaScript 23. HTML Iframes: Embed YouTube, Maps & Pages in HTML 24. HTML JavaScript: script Tag, Clicks & First Example 25. HTML File Paths: Relative vs Absolute Paths Explained 26. HTML Head Element: title, meta, charset & viewport 27. HTML Layout: header, nav, main, footer Page Structure 28. HTML Responsive Design: Viewport, Images & Media Queries 29. Semantic HTML Tags: header, nav, main, article & footer 30. HTML Forms: input, label, select, checkbox & Submit 31. HTML Entities: & < > © with Examples 32. HTML Audio & Video Tags: controls, source & Fallback 33. HTML Accessibility: alt Text, Labels, Landmarks & ARIA 34. HTML Meta Tags & SEO: charset, viewport, OG Tags 35. HTML Quotations: blockquote, q, cite, abbr & address
Final Test — Certificate ₹10
Try this code live
Lesson 16 of 35

HTML Title Tag: How to Write a Good Page Title

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.

Diagram — see how it fits together
Infographic: the page title in the browser tab

Why the title matters so much

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".

How to write a good title

  • Be specific: "HTML Tables — KAMALDNP Seekho" beats "Lesson 17".
  • Put the important words first: search engines give more weight to the start.
  • Keep it under 60 characters: longer titles get cut off in search results.
  • One title per page: every page on your site should have a different title.
  • Add your brand at the end: "… — KAMALDNP" helps people recognise your site.

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.

Tip: After writing a title, search for it on Google. If your page does not appear, the title is probably too generic or too similar to other pages.

What the title tag is

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.

Syntax

<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.

Note: The <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.
Tip: Keep the title under 60 characters. Google cuts off longer titles with "..." in the search results. Put the most important words first and the site name at the end, like "HTML Tables — KAMALDNP Academy".

Common mistakes

  • Leaving the title as "Untitled Document" — that is what every tab and every search result will show.
  • Using the same title on every page — each page needs its own, unique title.
  • Stuffing the title with keywords — "HTML, html tutorial, learn html, html course" looks like spam to Google.
  • Writing a very long title — anything past about 60 characters gets cut off.

Example explained

  • <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.

Example

Example
<!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>

Output

Output — how it looks in the browser
Output of HTML Title Tag: How to Write a Good Page Title

Try it yourself — live editor

Change the code below and press Run to see the result instantly. No file to save, no login needed.

Result

Frequently asked questions

The questions learners ask most about this lesson — read the question, then open it to see the answer.

1. What does the title tag do?

It sets the text on the browser tab, the headline Google shows in search results, and the name used for bookmarks.

2. How long should a page title be?

Keep it under 60 characters, because longer titles get cut off in search results.

3. Is the title tag the same as h1?

No, the title is for the tab and search results, while h1 is the big heading visitors see on the page itself.

Why learn this yourself — and not just ask AI?

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.

Get certified — just ₹10

Finish all 35 lessons, pass the test (80%), pay ₹10 and get your certificate.

Take the test

Prefer watching? Video courses teach the same topics step by step.

Go further with a full course

Free tutorials teach you the basics. Our paid courses add live projects, mentorship and a certificate.

AI Prompt Engineering Webinar 2026
View
Ethical Hacking & Cyber Security Workshop
View
Master Python + AI Skills in 30 Days
₹499
View
Browse all courses
HTML — Lessons
1. HTML Introduction: What is HTML? Learn with Examples 2. Best Free HTML Editors: Notepad to VS Code for Beginners 3. HTML Basic Structure: Doctype, Head, Body Explained 4. HTML Elements Explained: Tags, Content & Empty Elements 5. HTML Attributes List: href, src, alt, width, title & More 6. HTML Headings h1 to h6: Which Heading Tag to Use When 7. HTML Paragraphs: p Tag, br Line Breaks & pre Text 8. HTML Style Attribute: Colour, Font Size & Alignment 9. HTML Text Formatting Tags: bold, italic, mark & More 10. HTML Comments: How to Add Notes & Hide Code in HTML 11. HTML Colors: Names, HEX, RGB & HSL Colour Codes 12. HTML CSS: Inline, Internal & External Stylesheets 13. HTML Links: a Tag, href, New Tab & Email Links 14. HTML Images: img Tag, src, alt, Width & Formats 15. HTML Favicon: Create & Add a Browser Tab Icon 16. HTML Title Tag: How to Write a Good Page Title 17. HTML Tables: table, tr, th, td, colspan & rowspan 18. HTML Lists: ul, ol, dl & Nested Lists Explained 19. HTML Block vs Inline Elements: div, p, span Explained 20. HTML Div Tag: Group Content & Build Page Layouts 21. HTML Class Attribute: Style Many Elements at Once 22. HTML id Attribute: Unique IDs, Links, CSS & JavaScript 23. HTML Iframes: Embed YouTube, Maps & Pages in HTML 24. HTML JavaScript: script Tag, Clicks & First Example 25. HTML File Paths: Relative vs Absolute Paths Explained 26. HTML Head Element: title, meta, charset & viewport 27. HTML Layout: header, nav, main, footer Page Structure 28. HTML Responsive Design: Viewport, Images & Media Queries 29. Semantic HTML Tags: header, nav, main, article & footer 30. HTML Forms: input, label, select, checkbox & Submit 31. HTML Entities: & < > © with Examples 32. HTML Audio & Video Tags: controls, source & Fallback 33. HTML Accessibility: alt Text, Labels, Landmarks & ARIA 34. HTML Meta Tags & SEO: charset, viewport, OG Tags 35. HTML Quotations: blockquote, q, cite, abbr & address
Final Test — Certificate ₹10

🤖 KAMALDNP AI Assistant

Ask about courses, website & more

Hi! I'm KAMALDNP AI Assistant. Ask me about our courses, website features, or anything else! 😊
Please wait 5s...
🤖 KAMALDNP Assistant ✕

Request human callback:

🔐 Login Required
✕

Please log in to download. You will stay on this page after logging in!

New here? Register now →