HTML and CSS Reference
In-Depth Information
Note It is not appropriate to use the address element inside a sectioning element
other than article or the body of the document. So, a section element may have
a footer, but it would not have an address element included. If an address element
were included in this situation, the address would semantically apply to the first article
encountered that contained the section or to the body, whichever was encountered first.
Let's add a footer to the existing code, which provides an e-mail address contact for
the whole page:
<body>
<header>
<hgroup>
<h2>Site Slogan!</h2>
<h1>Site Title</h1>
</hgroup>
<nav><h1>Main Navigation</h1></nav>
</header>
<section><h1>Featured Content</h1>
<article><h1>An Article</h1>
<aside><h1>Article
Synop-
sis</h1></aside>
</article>
</section>
<section><h1>Other News</h1>
<article><h1>Another
Article</h1></article>
</section>
<footer>
<address>Contact:
<a
href="mailto:wm@example.com">Webmaster</a></address>
</footer>
</body>
Search WWH ::




Custom Search