HTML5 nav标记使用正确

<ul class="mainMenu">
    <li><a href="#">Home</a></li>
    <li><a href="#">Forum</a></li>
    <li><a href="#" class="mainSelected">Construct</a></li>
    <li><a href="#">Arcade</a></li>
    <li><a href="#">Manual</a></li>
</ul>
<ul class="subMenu">
    <li><a href="#">Homepage</a></li>   
    <li><a href="#">Construct</a></li>
    <li><a href="#" class="underSelected">Products</a></li>
    <li><a href="#">Community Forum</a></li>
    <li><a href="#">Contact Us</a></li>
</ul>

在语义上更正确的是< nav>围绕这两个< ul>单独,还是应该一个导航包?

还是使用nav标签来包裹我的页脚菜单项是合适的吗?

解决方法

引用规格:

The nav element represents a section
of a page that links to other pages or
to parts within the page: a section
with navigation links.

Not all groups of links on a page need
to be in a nav element — only sections
that consist of major navigation
blocks are appropriate for the nav
element. In particular,it is common
for footers to have a short list of
links to varIoUs pages of a site,such
as the terms of service,the home
page,and a copyright page. The footer
element alone is sufficient for such
cases,without a nav element.

所以,请随意包装在一个单一的nav标签。不要包装页脚,但在这里使用页脚标签:)

阅读规格在这里http://dev.w3.org/html5/spec/Overview.html#the-nav-element

相关文章

HTML5和CSS3实现3D展示商品信息的代码
利用HTML5中的Canvas绘制笑脸的代码
Html5剪切板功能的实现
如何通过HTML5触摸事件实现移动端简易进度条
Html5移动端获奖无缝滚动动画实现
关于HTML5和CSS3实现机器猫的代码