我刚开始使用新应用。下面是我要完成的任务的基本模型。 我是新手使用HTML5进行语义标记,所以我想要一些反馈/帮助。
我想了解如何/在何处使用<nav>
和<section>
<div id="container">
<header>
<div id="appInformation">
<a href="#" alt="Home">
<img src="">
</a>
<span>Selected AppName</span>
</div>
<div>
<span id="time">TIME GOES HERE</span>
</div>
<div>
<a href="#" alt="Additional Information">
<img src=""><!-- This is will be the location of the the 'i'-->
</a>
</div>
<div class="">
<label>UserName</label>
</div>
</header>
<div id="main">
<!-- main content for the selected app here -->
</div>
<footer>
<div id="appVersion">
VERSION # HERE
</div>
<nav>
<ul>
<li>
<a href="#">FAQ</a>
</li>
</ul>
</nav>
<div id="">
<!-- Team logo here-->
</div>
</footer>
答案 0 :(得分:3)
如果你没有任何东西可以引用,请避免使用Label,例如输入。
选择的AppName <time datetime="YYYY-MM-DD">TIME GOES HERE</time><!-- Don't need an id Time since you can target the Time tag -->
<a href="#" alt="Additional Information">
<img src=""><!-- This is will be the location of the the 'i'-->
</a>
<em>UserName</em> <!-- Don't use a label if you got nothing to refer too, like an input for example. -->
</header>
<div id="main">
<!-- main content for the selected app here -->
</div>
<footer>
<div id="appVersion">
VERSION # HERE
</div>
<nav>
<ul>
<li>
<a href="#">FAQ</a>
</li>
</ul>
</nav>
<a href="yourTeamUrl" id="">
<!-- Team logo here-->
</a>
</footer>
答案 1 :(得分:1)
除了@Simon Arnold的答案之外,我还可能会建议<nav>
使用不正确。页脚中的单个链接很难被解释为“主要导航块”。请参阅http://dev.w3.org/html5/spec/sections.html#the-nav-element