小编her*_*ibe的帖子

应该使用什么html5标记来过滤搜索结果

如果我有一个页面区域,其中包含用于过滤搜索结果的不同选项(带链接的无序列表,复选框,选择等).应该使用什么html5标签来包装过滤器?"section"标签,"nav"标签还是其他什么?

<div id="search-filters"> <!-- This should be a div, a nav, a section? -->
    <h3>Price</h3>
    <ul>
        <li>less than 100</li>
        <li>100 - 200</li>
        <li>more than 200</li>
    </ul>

    <h3>Brand</h3>
    <ul>
        <li>Brand A</li>
        <li>Brand B</li>
        <li>Brand C</li>
    </ul>

    ...
</div>
<section id="search_results">
    ...
</section>
Run Code Online (Sandbox Code Playgroud)

tags html5 semantic-markup

6
推荐指数
1
解决办法
2822
查看次数

标签 统计

html5 ×1

semantic-markup ×1

tags ×1