How to insert a text inside a SVG rectangle? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How to insert a text inside a SVG rectangle?

If you know this,Give reply

19th Jun 2020, 5:09 PM
ASAPU Kirankumar
ASAPU Kirankumar - avatar
4 Antworten
+ 2
Using text tag available in svg container , https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text You can also use any other tag in html like p to write text and use absolute positioning to place text inside svg
19th Jun 2020, 5:24 PM
Abhay
Abhay - avatar
+ 2
Try to convert img in rectangle don't try to put img in svg rectangle .
19th Jun 2020, 6:37 PM
🇮🇳Abhay Pratap Singh🇮🇳
🇮🇳Abhay Pratap Singh🇮🇳 - avatar
24th Jun 2020, 1:12 AM
Calviղ
Calviղ - avatar
+ 1
You can use text tag . And one thing here is no tag in svg which is nested ok . For that you need to define quadinates of that element. For better understanding use svg grid . https://code.sololearn.com/W7nE10MhWOmk/?ref=app
19th Jun 2020, 6:11 PM
Ayush Kumar
Ayush Kumar - avatar