You can use an online tool to create favicon, tou just need a 256 or 512 PNG, is easier and create different versions for every device.

You do not need code, just do add the images in the HTML folder.

Google: "create favicon online".