<地址>的使用HTML中的标签:版权或网站管理员? [英] Usage of <address> tag in HTML: copyright or webmaster?
问题描述
在我的客户网站的页脚上,我有他的地址和版权声明,并且下面有网站管理员的地址。我们应该使用< address>
标签?
根据HTML5规范:
<$> c $ c> address 元素表示最近的文章
或body
元素的联系信息祖先。如果这是body
元素,那么联系信息将作为一个整体应用到文档中。
http://dev.w3.org/html5/spec/sections.html#地址元素
所以我猜这两个地址都适合<地址>
标记,假设人们想要联系客户和网站管理员关于该网页的内容是合理的。
您不会在<地址>
标记中包含版权信息,因为它不是联系信息。
On the footer of my client’s website I have his address and copyright notice, and under there is the address of the webmaster.
With both I will use the hCard microformat.
With which of them I should use the <address>
tag?
As per the HTML5 spec:
The
address
element represents the contact information for its nearestarticle
orbody
element ancestor. If that is thebody
element, then the contact information applies to the document as a whole.http://dev.w3.org/html5/spec/sections.html#the-address-element
So I guess both addresses would be appropriate for the <address>
tag, assuming it would be reasonable for people to want to contact both the client and the webmaster regarding the content of the page.
You wouldn’t include the copyright message in the <address>
tag though, as it isn’t contact information.
这篇关于<地址>的使用HTML中的标签:版权或网站管理员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!