1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">3 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" >4 <head>5 <title>Test SVG dentro de XHTML</title>6 <style type="text/css">7 polygon[class="base"] { fill:blue; }8 </style>9 </head>10 <body>11 <h1 class="top">Poligonos renderizados por Mozilla</h1>12 13 <svg:svg width="200px" height="200px">14 <svg:polygon points="20,20 30,60 60,30" class="base" />15 <svg:foreignObject x="5" y="60" width="40" height="10">16 <span class="forobjpts" style="color:blue;">Poligono</span>17 </svg:foreignObject>18 </svg:svg>19 </body>20 </html>
Enlace
El enlace para compartir es: