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?

Can I Code If I'm Bad at Math? (Spoiler: Yes, You Can!)

12MP vs 48MP vs 64MP vs 108MP | Does More Megapixel Equal Better Image Quality?

🚀 Build a QR Code Generator Using HTML, CSS & JavaScript

AI is Learning to Code — Should Web Developers Be Worried?

The Secret to Flawless Web Design: Mastering Responsive Layouts

Can a Computer Run Without RAM?

Is iPhone More Secure Than Android Phone?

How To Create A Parallelogram Using HTML and CSS?

Can A Computer Virus Affect Hardware?