R
R
Rufix2019-11-04 23:58:24
HTML
Rufix, 2019-11-04 23:58:24

How to add SVG to HTML?

I have such figure in SVG - codepen
How to add it to HTML? I tried to create a name.svg file and add this code there and then connect via img, but it doesn't work. If I just add this code to HTML - everything is fine.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-11-05
@0xD34F

xmlns="http://www.w3.org/2000/svg"Add the and attributes to the svg element xmlns:xlink="http://www.w3.org/1999/xlink".

M
Maxim Novikov, 2019-11-05
@max583russia

Maybe your picture drawn into a vector editor and exported from there to svg
https://psv4.userapi.com/c848432/u210943549/docs/d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question