HTML Page Title

HTML Page Title
On the browser tab
In search engine results (SEO)
In bookmarks
It is defined using the <title> tag.
1. What Is an HTML Page Title?
The page title tells:
Users what the page is about
Search engines how to display your page
It is placed inside the <head> section of an HTML document.
2. Basic Syntax
The text My First Website appears on the browser tab.
3. Where Is the Title Shown?
Browser tab
Bookmark name (default)
Google / Bing search results
Example (search result):
4. Page Title vs Heading (<h1>)
| Feature | <title> | <h1> |
|---|---|---|
| Location | <head> | <body> |
| Visible on page | No | Yes |
| Used for SEO | Yes | Yes |
| Browser tab | Yes | No |
Example:
Both are important, but they serve different purposes.
5. SEO Best Practices for Page Title
- Keep it 50–60 characters
- Include main keyword
- Make it clear & unique
- Avoid keyword stuffing
Good Example:
Bad Example:
6. Changing Page Title with JavaScript (Optional)
- Useful for dynamic pages
7. Common Mistakes
- Forgetting
<title>tag - Placing
<title>inside<body> Using same title on all pages- Too long or meaningless titles
Key Points to Remember
<title>is mandatory in HTMLAppears in browser tab & search results
Must be inside
<head>Very important for SEO & UX
