<地址>的使用HTML中的标签:版权或网站管理员? [英] Usage of <address> tag in HTML: copyright or webmaster?

查看:105
本文介绍了<地址>的使用HTML中的标签:版权或网站管理员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的客户网站的页脚上,我有他的地址和版权声明,并且下面有网站管理员的地址。我们应该使用< 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 nearest article or body element ancestor. If that is the body 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.

这篇关于&lt;地址&gt;的使用HTML中的标签:版权或网站管理员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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