스케일러블 벡터 그래픽스(Scalable Vector Graphics,SVG)는 2차원 벡터 그래픽을 표현하기 위한 XML 기반의 파일 형식으로, 1999년 W3C의 주도하에 개발된 오픈 표준의 벡터 그래픽 파일 형식입니다.
<style>
.block1 {width: 200px; height: 200px;margin: 40px;float: left;}
</style>
<h2>Sample : Rect</h2>
<div class="well clearfix">
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="0"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="5"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="10"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="20"/>
</svg>
</div>
</div>
<style>
.block1 {width: 200px; height: 200px;margin: 40px;float: left;}
</style>
<div class="well clearfix">
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" rx="5" ry="5" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="5"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" rx="20" ry="20" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="5"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" rx="40" ry="40" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="5"/>
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#ffebee;">
<rect x="30" y="30" rx="60" ry="60" width="140" height="140" fill="#f48fb1" stroke="#880e4f" stroke-width="5"/>
</svg>
</div>
</div>
<div class="well clearfix">
<div class="block1">
<svg width="200" height="200" style="background:#e3f3fd">
<circle cx="100" cy="100" r="80" stroke="#0d47a1" stroke-width="0" fill="#bbdefb" />
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#e3f3fd">
<circle cx="100" cy="100" r="80" stroke="#0d47a1" stroke-width="5" fill="#bbdefb" />
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#e3f3fd">
<circle cx="100" cy="100" r="80" stroke="#0d47a1" stroke-width="10" fill="#bbdefb" />
</svg>
</div>
<div class="block1">
<svg width="200" height="200" style="background:#e3f3fd">
<circle cx="100" cy="100" r="80" stroke="#0d47a1" stroke-width="20" fill="#bbdefb" />
</svg>
</div>
</div>