HTML dentro de SVG

by Emanuel Vecchio

HTML

<svg xmlns="http://www.w3.org/2000/svg" width="800" height="500">
<foreignObject class="node" x="46" y="22" width="240" height="300">
<div>The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs</div>
</foreignObject>
</svg>

CSS

svg { border: 1px solid black; }
svg div { border: 1px dotted blue; }