249 shaares
Basé sur ce lien de SebSauvage, un snippet pour utiliser un emoji en tant que favicon. Le snippet ci-dessous supprime la nécessité de créer un fichier favicon.svg en intégrant directement le SVG grâce aux URL data:.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Rocket favicon</title>
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Ctext y='32' font-size='32'%3E🚀%3C/text%3E%3C/svg%3E">
</head>
<body>
Hello emoji favicon!
</body>
</html>