HTML
HTML FaviconHTML Favicon
HTML favicons display small icons in browser tabs.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
HTML pages show a small icon next to the page title in the browser tab. Developers use the `` tag to attach this icon. Browsers request standard formats like `.ico`, `.png`, or `.svg`.
Syntax
Syntax
Example
Example
Try it Yourself
Hands-on Practice
Modify the code below to see how it affects the output. This is the best way to learn!
Interactive Editor
1234567891011121314151617181920
Live Preview
Key Points
- Favicons appear in browser tabs.
- The `` tag connects the icon file.
- The `href` attribute points to the image path.
- Browsers cache favicons aggressively.