How to Add favicon to your website with HTML

Krishna AgarwalKrishna Agarwal
1 min read

Add a <link> element to your "index.html" file, after the <title> element.

<link rel="icon"href="image path" type="photo">
  • rel="icon" ( if you do not write an icon then favicon will not show )

  • href=" " (Image path)

  • type=" photo " ( what is your link type )

0
Subscribe to my newsletter

Read articles from Krishna Agarwal directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Krishna Agarwal
Krishna Agarwal