How to Add a Favicon To HTML?


A favicon is an image shown in the tab of the web browser before the web page name.

To Add a Favicon To Your Website, first of all, create a favicon image. To create a favicon image you can use www.favicon.cc, favicon.io, or other favicon generator tools to create a suitable favicon for your website. The common file name for a favicon is favicon.ico.
Now create images named folder in the root directory. Then, save your favicon inside this folder.
Then Add <link rel="icon" href="/images/favicon.ico"> after <title> tag inside <head> section.





<html>
     <head>
           .....code.......
           .....<title>.....</title>....
           <link rel="icon" href="/images/favicon.ico" type="images/x-icon">
           ....code.......  
     </head>
</html>


Trending Posts

Create a Stunning Personal Portfolio Website with HTML & CSS

How To Create A Simple Navigation Bar Using Only HTML and CSS?

How To Create a Fake Facebook Login Clone Using Only HTML and CSS?

How To Create A Magic 8 Ball Using HTML, CSS, and JavaScript?

Build a Responsive Product Card Gallery with Plain HTML & CSS

What is Blogging Business? A Beginner’s Guide to Making Money Online

How To Create a Fan Using Only HTML and CSS?

The Secret to Flawless Web Design: Mastering Responsive Layouts

Lock the Digital Door: What Aspiring Entrepreneurs Need to Know About Cybersecurity

Sunrise And Sunset Animation Using HTML & CSS?