HTML Page Title
π What is an HTML Page Title?
The HTML page title is the text shown in the browser tab, search engine results, and when bookmarking a page. Itβs set using the <title> tag inside the <head> element of your HTML document.
>>βYour page title is your siteβs first impression β make it count.β π‘
π§± Basic Syntax
HTML Title Example
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome!</h1>
</body>
</html>The text inside the <title> tag appears:
- π On the browser tab
- π In search engine results as the page title
- β When a user bookmarks or favorites the page
π SEO Importance of the Title
The title is critical for SEO (Search Engine Optimization). A good title should:
- β Clearly describe the content of the page
- β Be unique for each page
- β Include relevant keywords
Note
β οΈ Keep your title tag under 60 characters so it displays properly in Google search results.
π― Best Practices
- π¬ Write human-friendly and descriptive titles
- π Use 1β2 important keywords naturally
- π·οΈ Avoid keyword stuffing
- π Make each page title unique across your website
π Example Titles
| Page Type | Good Title |
|---|---|
| Homepage | MySite - Learn Web Development |
| Blog Post | 10 Tips to Master CSS Grid - MySite |
| Product Page | Organic Green Tea | Free Shipping - TeaWorld |
π§ͺ Testing the Title
After updating the <title> tag:
- π Reload your page in the browser
- π§Ό Clear cache if changes arenβt reflected
- π΅οΈββοΈ Check browser tab and source code
π More Resources
>>βEvery great website starts with a meaningful title.β π―