Introduction
Set Favicon for SEO to improve your site’s branding, trust, and user experience. Favicons are the tiny icons shown in browser tabs, bookmarks, and search results, helping users quickly recognize your website.
Favicon Example Code
<head>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
</head>
How It Works
The link rel="icon"
tag associates a small image file (usually 16×16 or 32×32 px) with your website. Modern browsers display this icon in tabs and bookmarks.
Why Use This?
Without a favicon, browsers show a default blank icon. A branded favicon boosts credibility and helps users easily identify your site in multiple open tabs.
Common Mistake
Using a large or unsupported file format may prevent the favicon from displaying. Always use .ico
or .png
formats optimized for web.
Pro Tip
Provide multiple favicon sizes (16x16
, 32x32
, 48x48
) to support different devices and platforms. Also, consider using apple-touch-icon
for iOS devices.