Home / Learn HTML / HTML Page Title and Favicon
HTML Page Title and Favicon
The title and the small icon on the browser tab are the first thing people notice.
<link rel="icon"> in the head and a short clear <title>.Definition
The favicon is the small icon on the browser tab and in bookmarks. You add it with <link rel="icon" href="/favicon.ico">. Use PNG or SVG for sharp results, and an apple-touch-icon for phones. The title is the text on the tab.
Theory in plain words
What it is
The page title is the name of the tab. The favicon is the small icon next to it.
Why we use it
They help people recognise your site among many tabs and bookmarks, and build trust.
How it works
The title element supplies the text. A link rel="icon" in the head points to the icon file.
Where it is used
- Browser tabs
- Bookmarks
- Search results
Quick quiz
1. Where is the favicon shown?
It is the small icon on the tab.
2. Which tag adds a favicon?
Use link with rel icon.
3. What is the best title length?
Short titles fit in search results.
Common questions
Where is the favicon shown?
Browser tab. It is the small icon on the tab.
Which tag adds a favicon?
<link rel="icon">. Use link with rel icon.
What is the best title length?
About 50 to 60 letters. Short titles fit in search results.