+ 1
How can I put text into a circle or a shape in svg?
2 Answers
+ 4
Using svg's text element.
https://www.w3schools.com/graphics/svg_text.asp
Just place the
<text> some text</text> in the same svg tag as that of the tag of shape š
You can see this code also,the text element starts from line 31
https://code.sololearn.com/WmDg713H6Mxc/?ref=app
Edit :
if that code is confusing you try this one.
https://code.sololearn.com/WrHqWcdMRCdA/?ref=app
0
https://code.sololearn.com/Wa7pBtX8vJNj/?ref=app