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