25 lines
505 B
XML
25 lines
505 B
XML
|
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
|
||
|
<style>
|
||
|
div {
|
||
|
background: pink;
|
||
|
font: 12px serif;
|
||
|
padding: 10px;
|
||
|
}
|
||
|
|
||
|
.red {
|
||
|
color: red;
|
||
|
}
|
||
|
|
||
|
.green {
|
||
|
color: green
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<foreignObject x="20" y="20" width="160" height="100">
|
||
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<p class="red">This is red color</p>
|
||
|
<a href="//example.com" class="green">This is green color</a>
|
||
|
</div>
|
||
|
</foreignObject>
|
||
|
</svg>
|