{"id":37,"date":"2012-11-14T16:38:05","date_gmt":"2012-11-14T20:38:05","guid":{"rendered":"http:\/\/www.jfciii.com\/blog\/?p=37"},"modified":"2015-03-31T20:46:46","modified_gmt":"2015-04-01T00:46:46","slug":"how-to-improve-your-search-usability","status":"publish","type":"post","link":"http:\/\/www.jfciii.com\/blog\/2012\/11\/14\/how-to-improve-your-search-usability\/","title":{"rendered":"How to Improve Your Search Usability"},"content":{"rendered":"<p>Doing searches on websites is a pain when you are using assistive technology. There are ways to improve how you get to the results.<\/p>\n<p>Why not add an <strong>HREF<\/strong> anchor like <strong>#maincontent<\/strong>, which we used for the &#8220;<a href=\"http:\/\/www.jfciii.com\/blog\/2008\/02\/24\/are-you-using-skip-navigation\/\"><strong>Skip Navigation<\/strong><\/a>&#8221; article to your &#8220;<strong>Search Results URL<\/strong>&#8221; so those using screen readers, other\u00a0assistive technologies, keyboards only, or other non desktop web browsers to skip right to the results section of the page skipping all the header, primary navigation links, and secondary navigation, etc.<\/p>\n<p>You also need to make sure you have a <strong>LABEL<\/strong> connected to your search box for screen reader and other assistive technology users to know what they are looking at. Below is some sample code you can use as a starting point, along with some CSS to hide the search LABEL visually off screen if your design calls for that kind of things.<\/p>\n<h3>Search Form Code<\/h3>\n<p>&lt;div class=&#8221;<strong>SEARCH<\/strong>&#8220;&gt;<br \/>\n&lt;form name=&#8221;Skills_Search&#8221; action=&#8221;searchResults.html<strong>#MAINCONTENT<\/strong>&#8220;&gt;<br \/>\n&lt;label for=&#8221;<strong>search2<\/strong>&#8220;&gt;Search&lt;\/label&gt;<br \/>\n&lt;input type=&#8221;text&#8221; name=&#8221;search2&#8243; id=&#8221;<strong>search2<\/strong>&#8221; \/&gt;<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;Search&#8221; \/&gt;<br \/>\n&lt;\/form&gt;<br \/>\n&lt;\/div&gt;<\/p>\n<h3>Results of Search Code<\/h3>\n<form action=\"searchResults.html#MAINCONTENT\" method=\"get\" name=\"Skills_Search\"><label for=\"search2\">Search<\/label><br \/>\n<input id=\"search2\" name=\"search2\" type=\"text\" \/><br \/>\n<input title=\"Submit search request\" type=\"submit\" value=\"Search\" \/><\/form>\n<p>To hide the word &#8220;<strong>Search<\/strong>&#8220;\u009d just add to the hide class used for the <a href=\"http:\/\/www.jfciii.com\/blog\/2008\/02\/24\/are-you-using-skip-navigation\/\">skip navigation blog post<\/a> this can be done easily by adding &#8220;<strong>.search label<\/strong>&#8221; to the CSS.<\/p>\n<p>Here&#8217;s a live example of the <a title=\"Show how to make search label not visible and skip to search results section on page\" href=\"http:\/\/jfciii.com\/refreshDC\/add.html\" target=\"_blank\">search box and search results example page<\/a>.<\/p>\n<p>Hope this little change to your website was helpful to you and it will make accessing the internet for those using assistive technologies better.<\/p>\n<p>If you have any questions or ways to improve this, please leave a comment or get in touch with me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Doing searches on websites is a pain when you are using assistive technology. There are ways to improve how you get to the results. Why not add an HREF anchor like #maincontent, which we used for the &#8220;Skip Navigation&#8221; article &hellip; <a href=\"http:\/\/www.jfciii.com\/blog\/2012\/11\/14\/how-to-improve-your-search-usability\/\">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,21,25,41,26,24,44,106,87,27,107,136,34,111,112,20],"tags":[],"class_list":["post-37","post","type-post","status-publish","format-standard","hentry","category-22","category-accessibility","category-css","category-design","category-design-principles","category-development","category-forms","category-helpful-tips","category-helping-others","category-html","category-programming","category-reading","category-screen-reader","category-search","category-skip-nav","category-skip-navigation","category-web-standards"],"_links":{"self":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/37","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=37"}],"version-history":[{"count":17,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":383,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions\/383"}],"wp:attachment":[{"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jfciii.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}