I want to add a copyright notice in my svg files and it should be only "hidden" text and no watermark. This is no real protection, because if you open a svg file with a text editor you can edit everything and delete the copyright. But I think this would be a simple and great way to show, who has made the file and a possible chance to find unlicensed graphics if there is some hidden information and if you are looking for it you can easily find it.
My main question is: how should the copyright text be put into the file?
<title>
element is for accessibility purposes, some user agents display the title element as a tooltip.<desc>
element generally improves accessibility and you should describe what a user would see.- ugly way: a text element with inline CSS to hide it. Don't even think about this! :)
<!--Copyright info here-->
could be also a simple solution.<metadata>
: this would the best way but I did not find a detailed definition and which child elements could live inside. Also https://developer.mozilla.org/en-US/DOM/SVGMetadataElement gives a 404. Under https://www.w3.org/TR/SVG/struct.html#MetadataElement we can find more details. But is RDF really necessary?
I think a <metadata>
element is the right place, but which child elements should be used and is just RDF the way to go?
<metadata>
is where this kind of info should go. I think the XML Schema allows you to just use text inside this element without additinal markup, be it RDF or anything else. But for accessibility reasons, I think it's a good idea to use some standardized markup for making explicit that you are encoding copyright information. – Corked