use
element[1]
href
or xlink:href
: specifies the named node to usex
y
<svg viewBox="0 0 300 300" xmlns="http://www.w3.org/2000/svg"> <circle id="myCircle" cx="50" cy="50" r="20" stroke="blue"/> <use href="#myCircle" x="100" fill="blue"/> <use href="#myCircle" x="150" fill="white" stroke="red"/> </svg>will have the result:
Copyright 2021-2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD-3-Clause License