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

What Are The Use of Function Keys F1 to F12 on The Keyboard?

5 Awesome Computer Shortcut Key Tricks You Must Try

πŸš€ Build a QR Code Generator Using HTML, CSS & JavaScript

Create A Calculator Using HTML, CSS & JavaScript

How to Create a Digital Clock with Date using HTML, CSS & JavaScript

Create a Typewriter Animation Using HTML and CSS

The Secret Formula to Grow as a Programmer

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

Why Should I Restart My Smartphone And Computer?

Create Light & Dark Theme Toggle Using HTML, CSS & JavaScript