<meta name="copyright" content="By Me" />
W3C validator output:
Line 5, Column 41: Bad value copyright for attribute name on element meta: Keyword copyright is not registered.
I need to set the copyright. Any idea?
<meta name="copyright" content="By Me" />
W3C validator output:
Line 5, Column 41: Bad value copyright for attribute name on element meta: Keyword copyright is not registered.
I need to set the copyright. Any idea?
Dublin Core proposes the rightsHolder
term (an extension to the <meta>
name
attribute), which validates using the W3C HTML5 validator:
<meta name="dcterms.rightsHolder" content="Your Copyright-Holder Organization">
This is defined as A person or organization owning or managing rights over the resource.
For a statement about property rights, we can use the regular rights
term:
<meta name="dcterms.rights" content="Statement of copyright">
To add the date of copyright:
<meta name="dcterms.dateCopyrighted" content="2012">
Source: http://wiki.whatwg.org/wiki/MetaExtensions
According to the MetaExtensions document, all these statements must be accompanied by a special <link>
element:
<link rel="schema.dcterms" href="http://purl.org/dc/terms/">
<meta name="dcterms.rightsHolder" content="Your Copyright-Holder Organization">
However, the W3C validator does not enforce this.
TL;DR Most of the non standard meta tags are not yet available for HTML5 validators. Until then you should include a small tag if you must have valid code.
Ok, I did a little bit more research into the subject. The issue is that the metatags on the WHATWG wiki are supposed to be used by validators, but in many cases because the tags update so frequently most validators ignore them until they become official parts of the spec.
So the only standard metatags right now are:
Eventually once the spec gets updated again the rights-standard
metatag will validate as well, but until then we need a workaround ... which is ...
....drumroll....
The <small>
tag!
The small element represents side comments such as small print.
Small print typically features disclaimers, caveats, legal restrictions, or copyrights. Small print is also sometimes used for attribution, or for satisfying licensing requirements.
Source: http://dev.w3.org/html5/spec/text-level-semantics.html#the-small-element
Also, just a side note. Just because your code doesn't validate doesn't mean it isn't valid. The spec is constantly evolving, so you just need to bear with it until things become more concrete.
© 2022 - 2024 — McMap. All rights reserved.