开发者

HTML standards for "in-page" navigation

I was wondering, is there any (hidden) standard for navigation within a web page? What I mean is, we all know that many, many pages have a search box (powered by Google, Bing or custom) for searching within the site. Is there a keyboard shortcut standard for accessing directly to the search box? In addition, usually when results are retu开发者_Python百科rned to the client, the user has to page through the results. Is there standard for paging results too? you know, it can be very convenient to be able to go to the next result set, previous, first, last... or perhaps even a specific page number in the result set. Is this feasible at all to go into a standard?

Thanks, Avi


Is there a keyboard shortcut standard for accessing directly to the search box?

No, just accesskey, which has drawbacks.

Is there standard for paging results too?

Just conventions, such as Yahoo!'s Search Pagination Pattern

it can be very convenient to be able to go to the next result set, previous, first, last... or perhaps even a specific page number in the result set

The rel attribute, specifically the start, next and prev values


HTML5 has a special tag for navigation elements.

Look at: http://www.w3schools.com/html5/tag_nav.asp

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜