版权元标记在 HTML5 中有效吗? [英] Is the copyright meta tag valid in HTML5?

查看:34
本文介绍了版权元标记在 HTML5 中有效吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

W3C 验证器输出:

<块引用>

第 5 行,第 41 列:元素元属性名称的版权价值错误:未注册关键字版权.

我需要设置版权.有什么想法吗?

解决方案

Dublin Core 提出了 rightsHolder 术语( 的扩展name 属性),使用 W3C HTML5 验证器进行验证:

这被定义为拥有或管理资源权利的个人或组织.

附加条款:

对于财产权的陈述,我们可以使用常规的rights术语:

添加版权日期:

来源:http://wiki.whatwg.org/wiki/MetaExtensions

挑剔

根据 MetaExtensions 文档,所有这些语句都必须伴随一个特殊的 元素:

<meta name="dcterms.rightsHolder" content="您的版权持有者组织">

但是,W3C 验证器不强制执行此操作.

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

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.

这篇关于版权元标记在 HTML5 中有效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆