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 “Skip Navigation” article to your “Search Results URL” so those using screen readers, other assistive 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.
You also need to make sure you have a LABEL 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.
Search Form Code
<form name=”Skills_Search” action=”searchResults.html#MAINCONTENT“>
<input type=”text” name=”search2″ id=”search2” />
<input type=”submit” value=”Search” />
Results of Search Code
To hide the word “Search“ just add to the hide class used for the skip navigation blog post this can be done easily by adding “.search label” to the CSS.
Here’s a live example of the search box and search results example page.
Hope this little change to your website was helpful to you and it will make accessing the internet for those using assistive technologies better.
If you have any questions or ways to improve this, please leave a comment or get in touch with me.