HTML Favicon

HTML Favicon

A favicon is a small icon displayed in the browser tab, bookmarks, or address bar of a website. It helps identify the website visually.

The favicon is added inside the <head> section of your HTML page using the <link> tag.


Example Code


 


Supported File Types

  • .ico (Most common)

  • .png

  • .jpg

  • .svg


Example with PNG File


 


Tips

✔ Recommended favicon size: 16×16 or 32×32 pixels
✔ Save the favicon file in your website root folder for easy access


Using a favicon makes your website look more professional and recognizable.

CodeCapsule

Sanjit Sinha — Web Developer | PHP • Laravel • CodeIgniter • MySQL • Bootstrap Founder, CodeCapsule — Student projects & practical coding guides. Email: info@codecapsule.in • Website: CodeCapsule.in

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *