The <title> Tag
The <title> element defines the page title. It lives inside <head> and is never displayed on the page itself.
<head>
<title>My Web Page | My Site</title>
</head>Where the Title Appears
- Browser tab text
- Browser bookmarks
- Google search result headline
- Social media link previews (Open Graph also used)
- History list in browser
Good Title Examples
<!-- Home page -->
<title>htmlstart — Free HTML Boilerplate Generator</title>
<!-- Article page -->
<title>HTML Headings Tutorial — htmlstart Learn</title>
<!-- Product page -->
<title>Nike Air Max 90 | Nike UK</title>SEO Tips
- Keep titles under 60 characters (Google truncates longer)
- Put the most important keyword first
- Include your site/brand name after a separator (|, —, :)
- Each page must have a unique title
A missing or duplicate <title> hurts SEO. Search engines use it as the link text in results — make it descriptive and keyword-rich.