English 中文(简体)
能否将“超”5“<nav” 元件用于对主要内容进行过滤或重新排序的链接?
原标题:Can the HTML5 <nav> element be used to group links that filter or reorder main content?

我们的网站有两条主要导航链接,两页完全不同。 与此类似:

<section>
    <header>
        <nav>
            <ul>
                <li><a href="link1.html">Link 1</a></li>
                <li><a href="link2.html">Link 2</a></li>
            </ul>
        </nav>
    </header>
</section>

在其中一页,我们还有一个过滤部分,构成一个链接清单,利用Ajax改变主要内容领域列出的结果(类似于当你调整激光器、点击箱等时,如何实时过滤其飞行选择)。

我的问题是,是否应在<条码>和代号;nav>要素中总结这一组过滤链接?

它希望:

<section>
    <nav>
        <ul>
            <li><a href="#filter1">Filter 1</a></li>
            <li><a href="#filter2">Filter 2</a></li>
            <li><a href="#filter3">Filter 3</a></li>
            <li><a href="#filter4">Filter 4</a></li>
            <li><a href="#filter5">Filter 5</a></li>
        </ul>
    </nav>
</section>

我混淆的原因是,The spec不清楚通过过滤等方法对网页内容进行实质性改动是否构成“原始导航”。 而且,我不敢肯定,如果在网页上有两条零点内容,那么从无障碍的角度来说,这必然会令人困惑。

问题回答

你可以,但是,这并不奇怪。 下面请上command tag,因为你不浏览内容,请你根据一些标准指示显示/hide某些内容。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签