Beispiel:SVG-Sprite-1.html
Aus SELFHTML-Wiki
<!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:Grundlayout.css"> <title>SVG-Sprite - 1</title> <style>
</style> </head>
<body>
SVG-Sprite - 1
<svg> <symbol id="house" viewBox="0 0 80 67"> <path d="M40,0 0,35 h11 v32 h21 V43 h16 v24 h21 V35 h11 z"/> </symbol> </svg> <svg> <use href="#house"/> </svg> </body> </html>