加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

版权声明的语义HTML标记

发布时间:2020-12-14 22:21:27 所属栏目:资源 来源:网络整理
导读:当网站获得知识共享许可时,我使用 rel-license microformat.当一个网站是经常版权许可时,我有一个无聊的段落元素。 p id="copyright"copy; 2008 Example Corporation/p 那里的id属性只是为了CSS造型的目的。我想知道是否有更好的方法来标记更具语义的版权
当网站获得知识共享许可时,我使用 rel-license microformat.当一个网站是经常版权许可时,我有一个无聊的段落元素。
<p id="copyright">&copy; 2008 Example Corporation</p>

那里的id属性只是为了CSS造型的目的。我想知道是否有更好的方法来标记更具语义的版权声明。这是都柏林核心元数据的工作吗?如果是这样,我该怎么办? (以前从来没有使用过都柏林核心)

一些网站主张在头元素中使用元标记:

<meta name="copyright" content="name of owner">

搜索引擎可能会看到这些内容,但不会替换页面本身的用户可见通知。

解决方法

感谢欧文指出RDFa的方向,我想我现在有了解决方案:
<div id="footer" xmlns:dc="http://purl.org/dc/elements/1.1/">
<p id="copyright" property="dc:rights">&copy;
  <span property="dc:dateCopyrighted">2008</span>
  <span property="dc:publisher">Example Corporation</span>
</p>
</div>

根据情况,最好使用dc:creator而不是dc:publisher。从都柏林核心网站:

If the Creator and Publisher are the same,do not repeat the name in the Publisher area. If the nature of the responsibility is ambiguous,the recommended practice is to use Publisher for organizations,and Creator for individuals. In cases of lesser or ambiguous responsibility,other than creation,use Contributor.

我还将添加一个meta标签到我的头元素的搜索引擎,不支持RDFa。

<meta name="copyright" content="&copy; 2008 Example Corporation" />

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读