Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
340 views
in Technique[技术] by (71.8m points)

html - Is the copyright meta tag valid in HTML5?

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...