How can I put text into a circle or a shape in svg? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I put text into a circle or a shape in svg?

12th Jun 2019, 11:54 AM
Ferry
Ferry - avatar
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
12th Jun 2019, 12:31 PM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar
0
https://code.sololearn.com/Wa7pBtX8vJNj/?ref=app
12th Jun 2019, 1:39 PM
Giorgos Mariettakis
Giorgos Mariettakis - avatar