How can I put text into a circle or a shape in svg? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

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

12th Jun 2019, 11:54 AM
Ferry
Ferry - avatar
2 Antworten
+ 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