您的位置:首页 > Web前端 > HTML5

The address tag(地址标签)这个是html5的知识!

2013-09-29 19:35 330 查看
这是一个新的HTML5元素,实际上几乎是直接的,因为它似乎。最重要的两件事,想到是这个地址元素与元素的嵌套,它必须是直接关系到本节。哦,你不能把字地址随便——它应该被认为是知识来源的文档。什么是“知识来源的文档”?这是作者或组织发布文档。

这里是清楚的说明,<address>元素可以用:

<article>
<header>
<hgroup>
<h1>All About Flour<h1>
<h2>Wheat flour is the backbone of the baked goods we love.</h2>
</hgroup>
<address>by Jane Doe</address>
</header>


<address>元素也可以用来表示作者的部分你的文档——这是一个很好的例子,<address>元素是用来标记引用的作者:

<article>
<header>
<h1>All About Flour<h1>
<p class=”byline”>by Jane Doe</p>
</header>
<section>
<h2>The Two Types of Wheat</h2>
<p>There … to rise.</p>
<p>Where … with less protein.</p>
</section>
<blockquote>
Wholemeal flour, the whole grain milled as finely as possible with all of the outer bran and inner germ intact, is one of the best white flour improvers I know of. <br />
<address>Dan Lepard, www.danlepard.com</address>
</blockquote>
</article>


只是为了确保——下面是一个例子,说明它不应该被使用,来标记邮政地址(这里是一个例外,除非导致邮政地址实际上是相关的联系信息的特定的文档或文档的一部分)

<address>
James Hansson <br />
27 Bricklane <br />
Georgetown <br />
</address>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  The address tag