HTML and CSS Reference
In-Depth Information
Here's how that might be marked up in HTML5 :
<header>
<h1>BBC</h1>
<nav>
<ul>
<li><a href="/options">Display Options</a></li>
<li><a href="/access">Accessibility Help</a></li>
<li><a href="/mobile">Mobiles</a></li>
</ul>
</nav>
<form target="/search">
<input name="q" type="search">
<input type="submit">
</form>
</header>
The <hgroup> element should be used
where you want a main heading
with one or more subheadings. For
an example, let's look at the HTML5
spec:
You'll learn more about
the <nav> element later
in this chapter. HTML5's
new form elements will
be covered in depth in
chapter 2.
<hgroup>
<h1>HTML5
(including next generation
additions still in
development)
</h1>
<h2>Draft Standard &mdash;
12 May 2010</h2>
</hgroup>
Search WWH ::




Custom Search