{"id":33,"date":"2008-02-24T11:52:18","date_gmt":"2008-02-24T15:52:18","guid":{"rendered":"http:\/\/www.jfciii.com\/blog\/2008\/02\/24\/are-you-using-skip-navigation\/"},"modified":"2014-01-29T21:35:21","modified_gmt":"2014-01-30T01:35:21","slug":"are-you-using-skip-navigation","status":"publish","type":"post","link":"http:\/\/www.jfciii.com\/blog\/2008\/02\/24\/are-you-using-skip-navigation\/","title":{"rendered":"Are You Using Skip Navigation?"},"content":{"rendered":"<p>Skip navigation is a great thing to have on your website for a lot of reasons. Here is a list of just a few of them the greatest ones being the first two, that they make websites more accessible to all.<\/p>\n<ul>\n<li>People using screen readers are forced to listen to a long lists of navigation links, sub-lists of links, and other elements before arriving at the main content.<\/li>\n<li>Keyboard users are forced to tab through all of the top links in order to reach the main content.<\/li>\n<li>Main content is not usually the first thing on the page or in the source order.<\/li>\n<li>People using Blackberries, Treos, etc. have to scroll through a huge list of links.<\/li>\n<\/ul>\n<p>Now that I have listed some of the reasons for skip navigation here is the code that I use in my websites.<\/p>\n<p><strong>&lt;body&gt;<br \/>\n&lt;div class=&#8221;hide&#8221;&gt; &lt;a href=&#8221;#MAINcontent&#8221;&gt;Skip to Main Content&lt;\/a&gt; &lt;\/div&gt;<\/strong><\/p>\n<p><strong>&#8220;navigation and other stuff goes here&#8221;<\/strong><\/p>\n<p><strong>&lt;a name=&#8221;maincontent&#8221;&gt;&lt;\/a&gt;<br \/>\n&lt;p&gt;This is the first paragraph&lt;\/p&gt;<\/strong><\/p>\n<p>Please notice that the HREF anchor has &#8220;<strong>MAINcontent<\/strong>&#8221; in the link part, by using &#8220;<strong>MAIN<\/strong>&#8221; in front of it you can still use &#8220;content&#8221; as an anchor somewhere else on the page for some odd reason. The other point to notice is that link text is &#8220;<strong>Skip to Main Content<\/strong>&#8221; because some screen readers or their voices might mis-pronounce the link text if it was &#8220;<strong>Skip to Content<\/strong>&#8220;. The screen readers have issues with the word content.<\/p>\n<p>Below is the CSS that I use in my websites to not display the skip navigation link(s) accept for the first time you tab through it then after you use it it does not show up on the screen anymore. I changed the ID information from the ones used in the original article by <a href=\"http:\/\/www.webaim.org\/techniques\/skipnav\/\" target=\"_blank\">WebAIM on how to implement skip navigation<\/a> (thanks, <a title=\"Justin Thorp's Web 2.0 blog - Drinking Oatmeal Stout\" href=\"http:\/\/drinkingoatmealstout.com\/\">Justin Thorp<\/a>). The article uses the ID of &#8220;<strong>skip<\/strong>&#8220;, I figure you might want to use it hide other items or you might want to have more than one &#8220;<strong>skip<\/strong>&#8221; type link, so I changed it to be a &#8220;<strong>CLASS<\/strong>&#8221; instead of an &#8220;<strong>ID<\/strong>&#8220;. The reason I changed the &#8220;<strong>ID<\/strong>&#8221; to .HIDE from the article was so you could use the CLASSs for other things like visually hiding the word &#8220;<strong>Required<\/strong>&#8221; for web FORM LABELs.<\/p>\n<p>Reminder please do not use &#8220;<strong>DISPLAY: NONE<\/strong>&#8221; in your CSS, since screen readers will not see it.<\/p>\n<p>CSS below was updated on January 29, 2014.<\/p>\n<p><strong>.hide a, .hide a:hover, .hide a:visited {<br \/>\ndisplay: block;<br \/>\nposition: absolute;<br \/>\nleft: -10000px;<br \/>\ntop: auto;<br \/>\nwidth: 100%;<br \/>\nheight: 3em;<br \/>\nfont-weight: bold;<br \/>\ntext-align: center;<br \/>\n} <\/strong><\/p>\n<p><strong>.hide a:active, .hide a:focus {<br \/>\nbackground: #fff; \/* change to whatever your color scheme is *\/<br \/>\ncolor: #3d3d3d; \/* dark gray *\/<br \/>\nposition: static;<br \/>\nwidth: auto;<br \/>\nheight: auto;<br \/>\npadding: 1em;<br \/>\nmargin: auto;<br \/>\n}<\/strong><\/p>\n<p>As you can see the CSS positions the link absolutely with a position of &#8220;<strong>LEFT<\/strong>&#8221; zero pixels and a &#8220;<strong>TOP&#8221;<\/strong> negative 500 pixels. This will allow screen readers, Blackberries, Treos, etc. to see it but not browsers.<\/p>\n<p>I hope this post is useful and further explains skip navigation from my Accessibility presentation &#8220;<a title=\"John F Croston III presentation on website accessibility\" href=\"http:\/\/www.jfciii.com\/presentations\/refresh%20dc\/accessibility.html\">Is your Website Accessible?<\/a>&#8221; at <a title=\"Refresh DC - The best and brightest new media professionals in the DC metro area\" href=\"http:\/\/refresh-dc.org\">Refresh DC<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Skip navigation is a great thing to have on your website for a lot of reasons. Here is a list of just a few of them the greatest ones being the first two, that they make websites more accessible to &hellip; <a href=\"http:\/\/www.jfciii.com\/blog\/2008\/02\/24\/are-you-using-skip-navigation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,23,40,41,26,44,106,111,112,20],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-22","category-accessibility","category-best-practices","category-design-principles","category-development","category-helpful-tips","category-helping-others","category-skip-nav","category-skip-navigation","category-web-standards"],"_links":{"self":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":8,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":341,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions\/341"}],"wp:attachment":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}