Is the copyright meta tag valid in HTML5?
Asked Answered
V

2

28
<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?

Viscous answered 12/7, 2011 at 13:55 Comment(0)
A
59

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.

Additional terms:

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

Nitpick

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.

Aviatrix answered 14/3, 2012 at 10:0 Comment(0)
K
16

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:

  • application-name
  • author
  • description
  • generator
  • keywords

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.

Krefeld answered 12/7, 2011 at 14:6 Comment(2)
Bad value rights-standard for attribute name on element meta: Keyword rights-standard is not registered. <meta name='rights-standard' content='copr2011' /Viscous
I dont think the small tag should be abused for this. Use <link rel="copyright" href="copyright.html">Heidy

© 2022 - 2024 — McMap. All rights reserved.