Html 版权信息的正确语义标签 - html5

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5876021/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 08:24:17  来源:igfitidea点击:

Correct Semantic tag for copyright info - html5

htmlsemantic-markup

提问by David

What would be the best and most semantic tag/method for including a copyright notice in the footer of a web site?

在网站的页脚中包含版权声明的最佳和最具语义的标签/方法是什么?

回答by Alohci

Put it inside your <footer>by all means, but the most fitting element is the small element.

一定要把它放在你<footer>的里面,但最合适的元素是小元素

The HTML5 spec for this says:

对此的 HTML5 规范说:

Small print typically features disclaimers, caveats, legal restrictions, or copyrights. Small print is also sometimes used for attribution, or for satisfying licensing requirements.

小字体通常包含免责声明、警告、法律限制或版权。小字体有时也用于归属或满足许可要求。

回答by Rami Sarieddine

it is better to include it in a <small>tag The HTML <small>tag is used for specifying small print.

最好将它包含在<small>标签中 HTML<small>标签用于指定小字体。

Small print (also referred to as "fine print" or "mouseprint") usually refers to the part of a document that contains disclaimers, caveats, or legal restrictions, such as copyrights. And this tag is supported in all major browsers.

小字体(也称为“小字体”或“鼠标印”)通常是指文档中包含免责声明、警告或法律限制(如版权)的部分。并且所有主流浏览器都支持此标签。

<footer>
 <small>&copy; Copyright 2058, Example Corporation</small>
</footer>

回答by Darin Dimitrov

The <footer>tag seems like a good candidate:

<footer>标签似乎是一个不错的人选:

<footer>&copy; 2011 Some copyright message</footer>

回答by Bart

In a link, if you put rel=license it: Indicates that the main content of the current document is covered by the copyright license described by the referenced document. Source: http://www.w3.org/wiki/HTML/Elements/link

在一个链接中,如果你把 rel=license it: 表示当前文档的主要内容被引用文档描述的版权许可所覆盖。来源:http: //www.w3.org/wiki/HTML/Elements/link

So, for example, <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Copyrighted but you can use what's here as long as you credit me</a>gives a human something to read and lets computers know that the rest of the page is licensed under the CC BY 4.0 license.

因此,例如,<a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Copyrighted but you can use what's here as long as you credit me</a>让人们阅读一些东西,并让计算机知道页面的其余部分是根据 CC BY 4.0 许可证获得许可的。