Ben From Accounting
Ben From Accounting
KPCKevin Powell - Community
Created by Neσ许 on 8/15/2023 in #front-end
What would be the best approach for SVG files?
It depends. If you want to change the style or animate the SVG you need to import it directly into the markup. If not you can use the img tag. I would still prefer using inline svg tags in case of vanilla html,css and js as this will also reduce the network calls.
6 replies