Home  >  Article  >  Web Front-end  >  Footer标签_html/css_WEB-ITnose

Footer标签_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:47:491255browse

footer

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

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

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

  • copyright
  • sitemap
  • contact
  • to top

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

Section content appears here.
Footer information for section.
Article content appears here.
Footer information for article.

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn