<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?
HTML 5 <meta> Tag. The HTML <meta> tag is used for declaring metadata for the HTML document. Metadata can include document decription, keywords, author etc. It can also be used to refresh the page or set cookies.
The <meta> tag defines metadata about an HTML document. Metadata is data (information) about data. <meta> tags always go inside the <head> element, and are typically used to specify character set, page description, keywords, author of the document, and viewport settings.
Note: cache-control and redirect meta tags are deprecated.
<meta name="copyright" content="The Owner" /> The “Author” and “Copyright” meta tags can be found in the source code of an HTML page. They are used to record information such as who built the corresponding website and who copyright ownership belongs to.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With