LinearGradient at svg without id
Hello I have this SVG:
<svg > <rect width="100%" height="100%" fill="url(#linear-gradient-1)" /> <defs> <linearGradient id="linear-gradient-1"> <stop offset="0%" stop-color="gold" /> <stop offset="100%" stop-color="silver" /> </linearGradient> </defs> </svg>
But how can I insert linearGradient without using an id. I have a lot of svgs and its very hard to remember all of ids...
Hello I have this SVG:
<svg >
<rect width="100%" height="100%" fill="url(#linear-gradient-1)" />
<defs>
<linearGradient id="linear-gradient-1">
<stop offset="0%" stop-color="gold" />
<stop offset="100%" stop-color="silver" />
</linearGradient>
</defs>
</svg>
But how can I insert linearGradient without using an id.
I have a lot of svgs and its very hard to remember all of ids...