HTML Favicon Last Updated : 05 Jun, 2025 Comments Improve Suggest changes Like Article Like Report A favicon (short for "favorite icon") is a small yet important image that appears next to your website’s title in the browser tab. Also known as a tab icon or bookmark icon, it helps users quickly identify and return to your site. Studies show that over 85% of users rely on visual cues like favicons to recognize websites they trust.They are used for several key purposes:Brand Recognition: They act as a visual marker that supports brand awareness.Professionalism: A well-designed favicon makes your site appear more credible.Usability: It enhances user experience by making it easier to locate your tab among many open ones.How to Create and Add a FaviconTo create and add a favicon to your website, follow these simple steps to ensure it's displayed properly across different browsers and devices:Create Your favicon: Design a small image, typically 16x16 or 32x32 pixels, and save it in an appropriate format like .ico, .png, or .svg. In this example, we're using a .png format.Upload the favicon: Upload your favicon image to your website's root directory, or in this case, we'll use an external URL for the image.Add the favicon to HTML: Open your HTML file and add a <link> tag in the <head> section that points to the favicon.Test Your favicon: After adding the code, save your changes and upload the file to your server if you're working locally. index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>HTML Favicon</title> <!-- Add icon link --> <link rel="icon" href="https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_200X200.png" type="image/x-icon"> </head> <body> <h3 style="color:green;">GeeksforGeeks</h3> <p>Welcome to my website</p> </body> </html> OutputCode Overview:rel="icon": Indicates that the linked resource is an icon for the document. This relationship is essential for browsers to understand that the specified file is meant to be used as the website's favicon.href="https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_200X200.png": Specifies the path to the favicon image. This can be a URL (as used here) pointing to an image that serves as the icon. type="image/x-icon": Specifies the MIME type of the favicon file. While commonly image/x-icon is used for .ico files, modern browsers support PNG and other formats as well.Note: Major browsers are not supported by the sizing property of the favicon.List of Favicon SizesDifferent devices and browsers may require favicons of various sizes. Here’s a list of common favicon sizes:NameSizeDescriptionfavicon-32.png32×32Standard for most desktop browsers.favicon-57.png57×57Standard iOS home screen.favicon-76.png76×76iPad home screen icon.favicon-96.png96×96GoogleTV icon.favicon-120.png120×120iPhone retina touch icon.favicon-128.png128×128Chrome Web Store icon & Small Windows 8 Star Screen Icon*.favicon-144.png144×144Internet Explorer 10 Metro tile for pinned site*favicon-152.png152×152iPad touch icon.favicon-167.png 167×167 iPad Retina touch icon (change for iOS 10: up from 152×152, not in action. iOS 10 will use 152×152)favicon-180.png180×180iPhone 6 plusfavicon-192.png192×192Google Developer Web App Manifest Recommendationfavicon-195.png 195×195Opera Speed Dial icon(Not working in Opera 15 and later)favicon-196.png196×196Chrome for Android home screen icon favicon-228.png 228×228Opera Coast iconFavicon File Format SupportHere’s a table summarizing the common file formats supported for favicons:File FormatBrowser SupportAdvantagesDisadvantagesICOEdge Chrome FirefoxOperaSafariSupports multiple sizes in a single file; widely supportedLarger file size compared to othersPNG All FiveHigh-quality image, supports transparency, smaller file sizeDoes not support multiple sizes in one fileGIFAll FiveSupports animationLimited color palette (256 colors), less ideal for faviconsJPEGAll FiveGood for high-quality imagesDoes not support transparency, larger file sizeSVGAll FiveScalable, small file size, sharp quality at any resolutionNot supported by all browsers (especially older ones)WebPAll FiveSmaller file size with high qualityLimited browser support, not widely used for faviconsTroubleshooting Favicon IssuesSometimes favicons don’t show up as expected. Here is how to troubleshoot some common issues:Clear Browser Cache: Browsers cache favicons, so clear the cache or try opening your website in incognito mode.Check File Path: Ensure the file path to your favicon is correct, and that it's in the root directory or properly referenced.Use Full URL: If the favicon still doesn’t appear, use the full URL:<link rel="icon" href="https://www.example.com/favicon.ico" type="image/x-icon">Format Issues: Double-check the favicon format (ICO, PNG, SVG) and make sure it’s supported across all browsers. Comment More infoAdvertise with us V vishalkumar2204 Follow Improve Article Tags : HTML HTML-Basics Similar Reads HTML Tutorial HTML stands for HyperText Markup Language. It is the standard language used to create and structure content on the web. It tells the web browser how to display text, links, images, and other forms of multimedia on a webpage. HTML sets up the basic structure of a website, and then CSS and JavaScript 11 min read HTML Introduction HTML stands for Hyper Text Markup Language, which is the core language used to structure content on the web. It organizes text, images, links, and media using tags and elements that browsers can interpret. As of 2025, over 95% of websites rely on HTML alongside CSS and JavaScript, making it a fundam 6 min read HTML Editors An HTML Editor is a software application designed to help users create and modify HTML code. It often includes features like syntax highlighting, tag completion, and error detection, which facilitate the coding process. There are two main types of HTML editors: Text-Based Editors - Allow direct codi 5 min read HTML Basics HTML (HyperText Markup Language) is the standard markup language used to create and structure web pages. It defines the layout of a webpage using elements and tags, allowing for the display of text, images, links, and multimedia content. As the foundation of nearly all websites, HTML is used in over 6 min read HTML Comments HTML comments are used to add notes or explanations in the HTML code that are not displayed by the browser.They are useful for documenting the code, making it easier to understand and maintain.To add a comment, use the syntax <!-- your comment here -->. HTML<!-- This is a comment and will n 4 min read HTML Elements An HTML Element consists of a start tag, content, and an end tag, which together define the element's structure and functionality. Elements are the basic building blocks of a webpage and can represent different types of content, such as text, links, images, or headings.For example, the <p> ele 5 min read HTML Attributes HTML Attributes are special words used within the opening tag of an HTML element. They provide additional information about HTML elements. HTML attributes are used to configure and adjust the element's behavior, appearance, or functionality in a variety of ways. Each attribute has a name and a value 8 min read HTML Headings HTML headings are used to define the titles and subtitles of sections on a webpage. They help organize the content and create a structure that is easy to navigate.Proper use of headings enhances readability by organizing content into clear sections.Search engines utilize headings to understand page 4 min read HTML Paragraphs A paragraph in HTML is simply a block of text enclosed within the <p> tag. The <p> tag helps divide content into manageable, readable sections. Itâs the go-to element for wrapping text in a web page that is meant to be displayed as a distinct paragraph.Syntax:<p> Some Content... 5 min read HTML Text Formatting HTML text formatting refers to the use of specific HTML tags to modify the appearance and structure of text on a webpage. It allows you to style text in different ways, such as making it bold, italic, underlined, highlighted, or struck-through. Table of ContentCategories of HTML Text FormattingLogic 4 min read Like