<polyline> 元素是用于建立任何隻有直線的形狀:
Sorry, your browser does not support inline SVG.
下面是SVG代碼:
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<polyline points="20,20 40,25 60,40 80,120 120,140 200,180"
style="fill:none;stroke:black;stroke-width:3" />
</svg>
F對于Opera使用者:檢視SVG檔案(右鍵單擊SVG圖形預覽源)。
隻有直線的另一個例子:
<polyline points="0,40 40,40 40,80 80,80 80,120 120,120 120,160" style="fill:white;stroke:red;stroke-width:4" />