HTML CSS examples for SVG:Text
Render Text with HTML5 SVG
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Render Text with HTML5 SVG</title> <style type="text/css"> svg {<!--from ww w . j av a 2 s . co m--> border: 1px solid black; } </style> </head> <body> <svg width="300" height="200"> <text x="20" y="30" style="fill:purple; font-size:22px;"> Welcome to Our Website! </text> <text x="20" y="30" dx="0" dy="20" style="fill:navy; font-size:14px;"> Here you will find lots of useful information. </text> </svg> </body> </html>