Answer the question
In order to leave comments, you need to log in
How to correctly insert an image in SVG format?
Good day. Such a problem: I can’t properly insert an image in svg format, Google Chrome and other browsers refuse to see it. THE CODE:<img src="fish.svg">
Answer the question
In order to leave comments, you need to log in
Tip, create a vector in Adobe illustrator, export to SVG and take the code from there.
The code is best pasted directly into HTML or PHP.
If your SVG image has a lot of dots and you are coding in PHP, then you can forget about long SVG lines in the page code (uncomfortable) and import them with a neat line like this (convenient) :)
For Wordpress, you need to specify the path to the theme directory. So:
Well, I think there is no need to explain about the advantages of SVG)
Thank you very much, everything was decided by replacing the picture (it looks like the file was damaged or something else)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question