Open In App
Related Articles

How to add icon logo in title bar using HTML ?

Improve Article
Save Article
Like Article

In this article, we are going to learn how can we add an icon logo in the title bar using HTML. Most of the websites add icons or image logos in the title bar.

The icon logo is also called a favicon. Adding favicons is also considered to be good for the SEO of the websites. The favicon is a combination of favorite icons. The link attribute is used to add the favicon.

Preview Image:


<link rel="icon" href="icon_path" type="image/icon type">

Example: In this example, we are using the above written syntax in the head tag of html.


<!-- HTML code to add icon in the title bar -->
<!DOCTYPE html>
    <meta charset="utf-8" />
        GeeksforGeeks icon
    <!-- add icon link -->
    <link rel="icon" href=
    <h1 style="color:green">
        GeeksforGeeks icon added in the title bar


Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 24 Nov, 2023
Like Article
Save Article
Similar Reads
Complete Tutorials