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

8 Characteristics Of Modern Computer

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

Brief History Of Computer

Does My Smartphone Listen To Me?

The Impact of Artificial Intelligence (AI) on Web Development

How To Protect Your Phone From Being Hacked? | 8 Ways To Protect Smartphone From Being Hacked

60hz vs 90hz vs 120hz | Which One is Best? | What is Refresh Rate?

When You Should Buy a New Smartphone? Right Time To Upgrade A Smartphone?

Starting Secure: Essential Data Protection Tips for New Entrepreneurs

Difference Between Intel i3, i5, i7 and i9 Processor | Which One is Better To Buy?