Using svg in html
Ahhhhhh why did I not know this. I was pretty stupid.
So before getting to know that I can use SVG inside HTML, I kinda knew about it but not exactly, so what I did was something like this:
But for some reason, this did not really work for me when I was working on the project, so I used .png instead. But it clearly turns out, svg works. I tried in two ways: (1) embedding the raw SVG codes into .html (I think when you are using Illustrator, it is important to turn characters into outlines, so that the browser needs not to support that specific font) (2) recognizing .svg as a value for src attribute:
Code Editor
And on my browser:
It works very, very well......
yeah. so that was it, about using svg in html.
yeah. so that was it, about using svg in html.