-2

i am creating my own website, however, i am quite new to coding and was wondering how to write the favicon line of code so that my logo appears at the top on the tab.

Can anyone help please?

Thanks :)

Chris Hapeshis
  • 83
  • 1
  • 11

1 Answers1

1

You can put this in your html:

<link rel="icon" type="image/x-icon" href="/favicon.ico" />

However; most browsers find it perfectly fine without this tag, if you upload a file called /favicon.ico :)

Sjon
  • 4,989
  • 6
  • 28
  • 46