Beispiel:SVG-Sprite-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
	<title>SVG-Sprite - 1</title>
	<style>

	</style>
</head>

<body>
<h1>SVG-Sprite - 1</h1>
<svg>
	<symbol id="house" viewBox="0 0 96 96">
		<path d="M40,13 L1,48 H12 V80 H32 V56 H48 V80 H68 V48 H79z"/>
	</symbol>
</svg>
<svg>
	<use href="#house"/>
</svg>
</body>
</html>