Home >Web Front-end >HTML Tutorial >Footer tag_html/css_WEB-ITnose

Footer tag_html/css_WEB-ITnose

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

footer

The

footer element can be the end of its direct parent content block or a root block. The footer usually includes additional information about its related blocks, such as author, related reading links, and copyright information.

In the past (and currently), we usually use code like the following to write the footer of the page:

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

In HTML5, we can not use div, but use more semantic Written as footer:

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

Multiple footer elements can be used in the same page, which can be used as the footer of the entire page or as the end of a content block. For example, we You can write the footer directly in the section or 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>

Concise version of HTML5 study notes (3): new elements 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