193
rated 0 times
[
196]
[
3]
/ answers: 1 / hits: 40388
/ 12 Years ago, mon, october 8, 2012, 12:00:00
I would like to know how to draw 100 rectangles with SVG.
I made one rectangle with this code:
<!DOCTYPE html>
<html xmlns=http://www.w3.org/1999/xhtml>
<body>
<svg id=svgOne xmlns=http://www.w3.org/2000/svg width=5000 height=3000>
<rect x=50 y=50 width=50 height=50 fill=black />
</svg>
</body>
</html>
I woukd like to draw 100 of rectangles with same size, different position (like 10 in row and 10 rows). How to do it fast? Some loop?
More From » html