serhii.net

In the middle of the desert you can say anything you want

04 Jun 2020

Day 521

You can write raw SVGs into HTML!

Just wow, I had no idea you could do that:

<b>Hi!</b>

<svg>
<line x1="0" y1="0" x2="10" y2="10" stroke="black"></line>
<rect x="0" y="0" width="10" height="10"></rect>
<circle cx="5" cy="5" r="5"></circle>
<ellipse cx="10" cy="5" rx="10" ry="5"></ellipse>
<polygon points="0,0 10,5 20,0 20,20 10,15 0,20"></polygon>
<polyline points="0,0 10,5 20,0 20,20 10,15 0,20" stroke="black"></polyline>
<path d="M65,10 a50,25 0 1,0 50,25"></path>
</svg>

(Found here: An introduction to d3.js in 10 basic examples)

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus