![](https://csdnimg.cn/release/download_crawler_static/6045935/bg8.jpg)
<desc>Basic shapes</desc>
<g>
<circle cx="50" cy="50" r="25" />
<ellipse cx="75" cy="125" rx="50" ry="25" />
<rect x="155" y="5" width="75" height="100"/>
<rect x="250" y="5" width="75" height="100" rx="30" ry="20" />
<line x1="0" y1="150" x2="400" y2="150"
stroke-width="2" stroke="blue"/>
<polyline points="50,175 150,175 150,125 250,200" />
<polygon points="350,75 379,175 355,175 355,200 345,200
345,175 321,175" />
<rect x="0" y="0" width="400" height="200"
fill="none" stroke="red" stroke-width="3" />
</g>
</svg>
除了形状以外,SVG 图像还可以包含文本。SVG 给予设计人员和开发人员对文本的大量控制,
可以获得很好的图形效果而不必借助失去真实纹理信息的图像(.gif 或.jpg)图像甚至 Flash 电
影常常这么做)。