【发布时间】:2014-01-03 08:05:22
【问题描述】:
我正在尝试寻找用 HTML5 编写搜索结果页面的最佳方式。
这就是我的做法。
<section>
<header>
<h2>Results for <kbd>this terms</kbd></h2>
</header>
<!-- list of results -->
<ol>
<!-- First result -->
<li>
<article>
<header>
<h3>
<cite>
<a href="http://addressofthepage.ch/">This is a result</a>
</cite>
</h3>
</header>
<blockquote cite="http://addressofthepage.ch/">
<p>So, setting about it as methodically as men might smoke out a wasps' nest, the Martians spread this strange stifling vapour over the Londonward country. The horns of the crescent slowly moved apart, until at last they formed a line from Hanwell to Coombe and Malden. All night through their destructive tubes advanced.</p>
<footer>
<p>Published <time datetime="2010-07-15T13:15:05-02:00">MMMM DDth, YYYY</time> at the <abbr title="Uniform Resource Locator">URL</abbr> <a href="http://addressofthepage.ch/">http://addressofthepage.ch/</a></p>
</footer>
</blockquote>
</article>
</li>
<!-- Second result ... and so on -->
<li>...</li>
</ol>
</section>
主要问题是
-
<header>提到了搜索词。最好使用什么标签?<kbd>? - 如果
<cite>标签位于<header>中,它是否与<blockquote>相关? - 将
<cite>放在blockquote > footer中不是更好,比如<p>[...] at the URL <cite><a href="http://addressofthepage.ch/">http://addressofthepage.ch/</a></cite></p>
所有这些都可以在Gist上获得
【问题讨论】: