I have a question regarding web accessibility.
I know that it's a good idea to include "Skip to main content" links in all of your pages, in order to help people skip over all of the extraneous information and go straight to the content of the page. However, I was wondering if it's okay to "hide" those links using CSS.
I get the impression that the links are there mainly for people that are going to be viewing the page without CSS, so, if there is no CSS applied to the page, then the links will show up. However, if there is CSS applied to the page, then the links will be hidden.
Is this an okay stance to take on these links, or do they have to be visible no matter what?
In other words, you would do something like:
In your CSS definitions:
Code:
.skiplink {
display: none;
}
Then, at the very top of your page:
Code:
<a href="#content" class="skiplink">Skip to main content</a>