SVG <text>
SVG စာသား - <text>
စာသားတစ်ခုကို သတ်မှတ်ရန် <text> ဒြပ်စင်ကို အသုံးပြုသည်။
ဥပမာ ၁
စာသားတစ်ခုရေးပါ
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="30" width="200">
<text x="0" y="15" fill="red">I
love SVG!</text>
</svg>
ဥပမာ ၂
စာသားကိုလှည့်ပါ
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="60" width="200">
<text x="0" y="15" fill="red"
transform="rotate(30 20,40)">I
love SVG</text>
</svg>
ဥပမာ ၃
<text> ဒြပ်စင်အား <tspan> ဒြပ်စင်ဖြင့် မည်သည့်အုပ်စုခွဲအရေအတွက်ဖြင့်မဆို စီစဉ်နိုင်ပါသည်။ <tspan> ဒြပ်စင်တစ်ခုစီတွင် မတူညီသော ဖော်မတ်ချခြင်းနှင့် အနေအထား ပါဝင်နိုင်သည်။
စာကြောင်းများစွာတွင် စာသား ( <tspan> ဒြပ်စင်နှင့်အတူ)
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="90" width="200">
<text x="10" y="20" style="fill:red;">Several lines:
<tspan x="10" y="45">First line.</tspan>
<tspan x="10" y="70">Second line.</tspan>
</text>
</svg>
ဥပမာ ၄
လင့်ခ်တစ်ခုအဖြစ် စာပို့ပါ ( <a> ဒြပ်စင်နှင့်အတူ)
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="30" width="200"
xmlns:xlink="http://www.w3.org/1999/xlink">
<a xlink:href="https://www.w3schools.com/graphics/"
target="_blank">
<text x="0" y="15" fill="red">I love SVG!</text>
</a>
</svg>