Basic way to set favicon in HTML
Add array for favicons
And, we’re gonna use this array with for loop to apply it to our code above.
That’s it! In the same way, we can set other favicons like Android shortcut icons or Apple touch icons for iPhone and iPad.
Set another array and function
With the code above, we’ve completed to set touch icons for iOS.
Moreover, by applying dynamic parameter for the function, you can make your favicon dynamically(e.g., badge on favicon).
Date : January 3, 2018
Writer : Hyouk Seo (Spemer)