How can someone write inside SVG drawing? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can someone write inside SVG drawing?

27th Mar 2017, 9:21 PM
Alao Samuel Mofifoluwa
Alao Samuel Mofifoluwa - avatar
5 Answers
+ 17
svg is a graphics container. Did you put a path to write something? Could you post an example?
27th Mar 2017, 10:21 PM
Tashi N
Tashi N - avatar
+ 13
You mean handwriting?
27th Mar 2017, 9:43 PM
Tashi N
Tashi N - avatar
+ 4
Did you specify x and y coordinates for your text? If not the text might not be visible. Try <text x="0" y="16">Hello SVG!</text>
27th Mar 2017, 11:36 PM
Tob
Tob - avatar
+ 2
I wanted to input a name inside the SVG Drawing. But it's not showing
27th Mar 2017, 9:52 PM
Alao Samuel Mofifoluwa
Alao Samuel Mofifoluwa - avatar
+ 1
Thank you Tashi N and Tobi. I later got it with the example you gave. I mean with the use of <text x="" y=""> the text</text>. Thanks
28th Mar 2017, 11:12 AM
Alao Samuel Mofifoluwa
Alao Samuel Mofifoluwa - avatar