html - HTML5 How To Skip Navigation When Name Attribute Is Obsolete -


The Web Content Accessibility Guidelines states that you should provide a "skip" link that gives you an example (for example ) In the navigation block and content directly it is particularly useful for impaired users, who use a screen-reader to listen to a page.

6.2 Grouping and bypassing links

However, this technique depends on using the name attribute anchor tags:

   

Excluding the link:

  & lt; A href = "# content" & gt; Skip to content & lt; / A & gt;  

The problem is, the "name" attribute of the anchor tag is obsolete in HTML5

Footnote: Still the position of HTML5 in the draft and it is possible that What is the other way to achieve "Skip to" functionality without using this name feature? Actually the permission of the name trait will continue in this situation - although it will probably still generate a "warning", it is currently marked as "obsolete but customizable", which means that you can use it - However, I want to know in other ways to see that "there is a way to do this" rely on an obsolete feature.

& lt; A & gt; tag, you can use any element with the id attribute:

  & lt; H2 id = "content" & gt; Content & lt; / H2 & gt; & Lt; A href = "#type" & gt; Skip to content & lt; / A & gt;  

Edit, you found a source (though it is Wikipedia - -)):

Alternatively (and sometimes together) names With the ID attribute set, the element becomes a target, a uniform resource locator can link to this goal through a piece identifier. Any element using the ID attribute can now be made in an anchor, [2] then & lt; A name = "foo" & gt; Using is not necessary.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -