Heim  >  Artikel  >  Web-Frontend  >  Footer标签_html/css_WEB-ITnose

Footer标签_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:47:491336Durchsuche

footer

footer元素可以作为其直接父级内容区块或是一个根区块的结尾。footer通常包括其相关区块的附加信息,如作者、相关阅读链接以及版权信息等。

过去(及目前),我们通常使用类似下面这样的代码来写页面的页脚:

<div id="footer"> <ul> <li>copyright</li> <li>sitemap</li> <li>contact</li> <li>to top</li> </ul><div>

在HTML5中,我们可以不使用div,而用更加语义化的footer来写:

<footer> <ul> <li>copyright</li> <li>sitemap</li> <li>contact</li> <li>to top</li> </ul></footer>

在同一个页面中可以使用多个footer元素,即可以用作页面整体的页脚,也可以作为一个内容区块的结尾,例如,我们可以将footer直接写在section或是article中:

<section>Section content appears here.<footer>  Footer information for section.</footer></section><article>Article content appears here.<footer>  Footer information for article.</footer></article>

HTML5学习笔记简明版(3):新元素之hgroup,header,footer,address,nav

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn