I want to create a favicon with type="image/svg+xml"
and href="data:image/svg+xml,<svg ... "
but when I put the svg behind the data:image/svg+xml,
there's always giving me an error like this.
Can guys help me the issue?
Asked
Active
Viewed 301 times
0

rhyshighrise
- 15
- 5
-
https://codepen.io/tigt/post/optimizing-svgs-in-data-uris#its-all-in-the-quotes-1 – morganney Dec 22 '21 at 01:42
-
omg thanks u so much @morganney – rhyshighrise Dec 22 '21 at 03:36
-
Does this answer your question? [Is embedding background image data into CSS as Base64 good or bad practice?](https://stackoverflow.com/questions/1124149/is-embedding-background-image-data-into-css-as-base64-good-or-bad-practice) – chrwahl Dec 22 '21 at 08:14