SVG – Learning by Coding

[ rect.svg --> Grafik anzeigen ]

 1: 
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 2: 
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"

 3: 
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [

 4: 
  <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">

 5: 
]>

​ 6:  7: 
<!-- SVG Learning by Coding http://www.datenverdrahten.de/svglbc/ -->

 8: 
<!--    AuthorDrThomas Meinike 12/02 thomas@handmadecode.de     -->

​ 9: 10: 
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

​11: 12: 
  <title>SVG Learning by Coding</title>

13: 
  <desc>SVG-Spezifikation in Beispielen</desc>

14: 
  <text x="20" y="30" style="fill: #000; font-size: 24px">Element rect</text>

​15: 16: 
  <rect x="20" y="70" width="150" height="75" style="fill: #090"/>

17: 
  <rect x="200" y="70" width="150" height="75" style="fill: none;

18: 
    stroke#F00; stroke-width: 2px"/>

19: 
  <rect x="20" y="180" width="150" height="75" style="fill: #EEE;

20: 
    stroke#090; stroke-width: 2px; stroke-dasharray: 5,5"/>

21: 
  <rect x="200" y="180" width="150" rx="5" ry="5" height="75"

22: 
    style="fill: #FFC; stroke: #00C; stroke-width: 2px"/>

23: 
  <rect x="20" y="290" width="150" height="75" rx="25" ry="50"

24: 
    style="fill: #EFF; stroke: #F90; stroke-width: 2px"/>

25: 
  <rect x="200" y="290" width="150" rx="50" ry="25" height="75"

26: 
    style="fill: #FFF; stroke: #999; stroke-width: 2px"/>

27: 
  <rect x="20" y="400" width="150" height="75" rx="50" ry="50"

28: 
    style="fill: #FFE; stroke: #00F; stroke-width: 2px"/>

29: 
  <rect x="200" y="400" width="150" rx="100" ry="100" height="75"

30: 
    style="fill: #FEE; stroke: #000; stroke-width: 2px"/>

​31: 32: 
</svg>

[zum Anfang]