SVG – Learning by Coding
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: <!-- Author: Dr. Thomas 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:
15: <defs>
16:
17: <style type="text/css">
18: <![CDATA[
19:
20: circle
21: {
22: fill: #FF0;
23: stroke: #00C;
24: stroke-width: 2px;
25: }
26:
27: #abc123
28: {
29: fill: #00C;
30: opacity: 0.5;
31: }
32:
33: .xyz
34: {
35: font-family: "Courier New", Courier, monospace;
36: font-size: 20px;
37: font-weight: bold;
38: fill: #F00;
39: }
40:
41: ]]>
42: </style>
43:
44: </defs>
45:
46: <text x="20" y="30" style="fill: #000; font-size: 24px">Element style</text>
47:
48: <circle cx="100" cy="100" r="30"/>
49: <rect id="abc123" x="50" y="150" width="150" height="75"/>
50: <text class="xyz" x="50" y="260">
51: Kreis, Rechteck und Text wurden mit CSS formatiert.
52: </text>
53:
54: </svg>
[zum Anfang]