Are You Using Skip Navigation?

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.

  • 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.
  • Keyboard users are forced to tab through all of the top links in order to reach the main content.
  • Main content is not usually the first thing on the page or in the source order.
  • People using Blackberries, Treos, etc. have to scroll through a huge list of links.

Now that I have listed some of the reasons for skip navigation here is the code that I use in my websites.

<body>
<div class=”hide”> <a href=”#MAINcontent”>Skip to Main Content</a> </div>

“navigation and other stuff goes here”

<a name=”maincontent”></a>
<p>This is the first paragraph</p>

Please notice that the HREF anchor has “MAINcontent” in the link part, by using “MAIN” in front of it you can still use “content” as an anchor somewhere else on the page for some odd reason. The other point to notice is that link text is “Skip to Main Content” because some screen readers or their voices might mis-pronounce the link text if it was “Skip to Content“. The screen readers have issues with the word content.

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 WebAIM on how to implement skip navigation (thanks, Justin Thorp). The article uses the ID of “skip“, I figure you might want to use it hide other items or you might want to have more than one “skip” type link, so I changed it to be a “CLASS” instead of an “ID“. The reason I changed the “ID” to .HIDE from the article was so you could use the CLASSs for other things like visually hiding the word “Required” for web FORM LABELs.

Reminder please do not use “DISPLAY: NONE” in your CSS, since screen readers will not see it.

CSS below was updated on January 29, 2014.

.hide a, .hide a:hover, .hide a:visited {
display: block;
position: absolute;
left: -10000px;
top: auto;
width: 100%;
height: 3em;
font-weight: bold;
text-align: center;
}

.hide a:active, .hide a:focus {
background: #fff; /* change to whatever your color scheme is */
color: #3d3d3d; /* dark gray */
position: static;
width: auto;
height: auto;
padding: 1em;
margin: auto;
}

As you can see the CSS positions the link absolutely with a position of “LEFT” zero pixels and a “TOP” negative 500 pixels. This will allow screen readers, Blackberries, Treos, etc. to see it but not browsers.

I hope this post is useful and further explains skip navigation from my Accessibility presentation “Is your Website Accessible?” at Refresh DC.

“Say-Instead” Part of CSS3

Again while in Austin, Texas, I was talking with Charles L. Chen about his CLiCk Speak Firefox extension and he showed me that by using the new CSS3 property called “say-instead“, which is used to allow screen readers to pronounce words or phrases correctly. Listed below is a few examples of phrases you might use in your posts, which a screen reader would pronounce incorrectly.

The first part of the line is the way you typed it and the second is the way it should be spoken.

  • Dr. Kapp versus Dr. Cop
  • Homepage versus Home Page
  • Pope John Paul II versus Pope John Paul the Second
  • Rocky II versus Rocky 2
  • Godfather II versus The Godfather Part 2

If the say-instead property were officially part of CSS3 and available to use in browsers you would have to add to your CSS file the different classes for each set of words or sets of words you want to have said properly. A few examples of this would be as follows:

.sayinstead_drkapp { say-instead: “doctor cop”;}

.sayinstead_homepage { say-instead: “home page”;}

.sayinstead_popejp2 { say-instead: “Pope John Paul the Second”;}

.sayinstead_rocky2 { say-instead: “Rocky Two”;}

.sayinstead_godfather2 { say-instead: “The Godfather Part Two”;}

 

The way you need to get these to work is put a <SPAN> tag around each set of words that needs to have the “say-instead” text read out loud. Below is the example of the code:

  • Dr. Kapp versus <span class=”sayinstead_drkapp”>Dr. Kapp</span>
  • Homepage versus <span class=”sayinstead_homepage”>Homepage</span>
  • Pope John Paul II versus <span class=”sayinstead_popejp2″>Pope John Paul II</span>
  • Rocky II versus <span class=”sayinstead_rocky2″>Rocky II</span>
  • Godfather II versus <span class=”sayinstead_godfather2″>The Godfather II</span>

 

I’m spent a bunch of time trying to get this to work in this post and was having trouble, I think part of the problem is that I’m trying to do this inside of WordPress. I created an example on my website to use as the test example for the “say-instead” CSS3 property.

Here is the example created by Charles L. Chen on his website for the “say-instead” CSS3 property. Please give the example page a try by using a screen reader such as JAWS, Window-Eyes, or the Firefox extension Fire Vox created by Charles L. Chen. See my post for more details about Fire Vox.

I hope this information is helpful while building your websites and trying to make them as accessible as possible.

Another Long Frustrating and Sometimes Fun Week

Last week was a bit frustrating and somewhat fun at the same time.

Work was busy and somewhat of a pain. I need to get about four projects done before I head to SXSW on the 6th of March, 2008. A bunch of my users/clients want all the work completed, but do not have time to give me the necessary information or they just have no time to just review the finished work so we can move it to PROD.

On one project I finally, suggested that we put in what we had, which was about 90 – 95% of what was needed. This way they could start using the much better version of the web application instead of waiting. they agreed and next week I still have to work on three pages that are still in the old layout and then I will be done with this pass. We finally moved the new pages to PROD on Tuesday.

After work on Tuesday’s most of you know I normally go to a wine tasting/class. Well this Tuesday the Washington, DC, metro area had some really bad weather. It consisted of some rain, freezing rain, sleet, or snow depending on where you lived. So I figured I would just stay home and do stuff around the house, since people around here just need to learn to drive in bad weather. After talking with a bunch people I usually meet there, we all decided to try and make it to class, which is normally a 30 – 40 minutes drive (12 miles).

I suggested that a few of us that live near each other should carpool. I told one of my friends I would pick her up and then we would go to another friends that is on the way. They both live like two or three miles from me in different directions. I left for the first friends at like 6:45 PM, but first I had to remove ice from car. This drive usually takes ten minutes or less on a bad day, since it is all of 2.25 miles and has a few stoplights. The second half of my trip should take 15 minutes to go to our other friends place and then a final drive of eight miles (15 minutes).

Well, as you can imagine the first part took forever. I was on the phone most of the time off and on keeping everyone inlvolved informed of me progress, which was going poorly. The first three quarters of a mile went well. Once I got to the hill on Braddock Road that’s when the problems started. It took over an hour to get to the top of the hill and it is only like a quarter of a mile long. We moved about two or three car lengths about every few minutes. A few times I had to put the emergancy brake on after putting the car in neutral so I could get the feeling back to my feet. This is the one big problem with having a manual car in this town.

The second friend decided to leave without us. He got to class before I even made it half way to my other friends place. The first friend ended up having enough time to balance their checkbook, watch a full episode of “The Simpson’s”, have dinner, and do a few other things. A few people told me to just head home and call it a night. I told them it was not that easy, since the road going the other direction was backed up too, so I could not make a U turn.

Of course I did not turn around and go home, since now it had became a matter of principal.

At some point I made it to a street that I thought I could get to my friends from. I called her and had her work me through the neighborhood to her place. At one point she told me to make a right on a road that I thought was going the wrong way. She told me now that I was heading uphill I should look for some street, I can’t think of now. I told her I was headed downhill and she said “No, you I should not be”. She had gotten confused to which way I was traveling , because this street was a big loop and she normally comes in to that street another way. After I got turned back around things where just fine.

I then picked up my friend at her place and the last part of the trip to wine class was like ten miles and took all of 18 minutes to get there. Even the Key bridge (named after Francis Scott Key the same guy that wrote the “Star-Spangled Banner”) had no traffic on it, which is really odd, since that is one of the places that I spend most of my time getting to class normally.

When we finally got to class about an hour after it started the other 15 or 20 people started to cheer that we had finally made it. By being this late we had to catch up on like three wines that they had already tried. Not that hard to do, since I could use a drink after spending almost two hours in my car.

On an unrelated note while at class my second friend mentioned that the wine blog, I started for our wine group had gotten a bit of spam comments under one of the blog posts that with the title “Two Blondes, a Brunette and Five Reds – Big Bodacious Blends Part 1“. I have him set up be one of the authors to the blog so I don’t have to do all the work. He said he had deleted about 70 or 80 spam comments. I said I would look into it when I got home.

When I got home we had like 40 or so more comments. I had forgotten to turn Akismet on this blog for some reason, which would have made this a bit easier. So this meant I had to manually delete all the comments from the posts. Just what I wanted to do. I tried to activate Akismet and it was looking for an activation key, which I could not find the e-mail with it in it. I figured it would stop soon anyway and I was tried and needed to sleep. When I woke up early after like six hours of sleep I noticed the spamming had not stopped. I had to delete another 180 comments. What a pain in the rear.

At this point I found my Akismet activation key and got it going, but the spam continued coming. I noticed that it was just a bunch of comments that dealt with casino’s, gambling, slot machines, lounges, etc. and all coming from one I.P. address – 195.225.178.29. It is from a company called “RIPE Network Coordination Centre” in Amsterdam, NL. It finally stopped after like a day and a half. At this point Akismet had stopped about 100 or more comments by Thursday afternoon. I still do not get why comment spammers do this.

The fun part of the week was when about five other single friends (four women, my buddy, and myself) of mine got together on Valentine’s Day at my friends house to have nice relaxing evening. The night consisted of a bunch of appetizers the rest of us brought, that included champagne (really sparkling wine from France), shrimp with cocktail sauce, shrimp cooked in basil pesto sauce, a bread bowl with different types of flat breads, crackers with pate, olive spread, and a cheese spread.

Once all that was done we got to the dinner part, which was just fabulous. We started the meal with a roasted pumpkin soups shooter with one shrimp. Next we got to the dinner, which was filet mignon seared and placed in a beef stock, shallot, and course ground mustard sauce. With all this we had broccoli rabe and roasted fingerling potatoes. During dinner we drank three different years of the same wine the same producer from Argentina.

The following is the list of wines we had during the evenings events in the order that we had drank them.

  • NV – Kirkland Rose Champagne
  • 2000 – Concha y Tora Don Melchor Cabernet Puente Alto – Chile
  • 2001 – Concha y Tora Don Melchor Cabernet Puente Alto – Chile
  • 1999 – Chateau Lalande Saint-Julien
  • 2004 – Concha y Tora Don Melchor Cabernet Puente Alto – Chile

If all this was not enough my buddy was reading reviews about the wines from the internet. He mentioned that the second wine we had was similar to French wines from the Saint Julian region. One of the women that was there said something to the effect of I have never had one of those. So what did my buddy do, he went to where he stores his wines and brought out a 1999 of one of them. Great wine drinking just wonderfully now.

We finished the the night off with a flourless chocolate tart with home made fresh whipped cream and a dusting of coco power. the final thing to top off the evening was my friend had made each of the women a box of home made chocolate truffles. He had asked me to get a single rose for each one , which I told him I had thought of doing. From what I heard from all the women these two things topped off and already perfect night.

Now that the fun is done it’s back to work projects. I moved my second project’s the code into PROD on Friday without any error checking, since it is only used by one maybe two people. I figured that they can be careful for a few days while I get that done. The only reason I’m doing it this way is they really need to get to entering information into the system and they know they should enter information for every field and there is field formatting examples as part of the LABEL text. Now I can get going on two other projects and at least move the new and improved code for now. There is still going to be a second phase to add new fields, reports, and functions in the near future (after SXSW) anyway.

Last night (Friday) I went back and checked to see if the spamming had stopped and of course it had started again. Now they are trying to post to another one our spots that has the title “Two Blondes, a Brunette, and Five Big Bodacious Reds Redux“. We are now up to almost 700 spam comments from them stopped by Akismet, since Wednesday morning, plus the 250 or so we manually deleted. They are spamming the website every four or five minutes from different websites and blog posts, but the same I.P. address.

So in conclusion if you want to get your blog post comment numbers really high without having to write a really lot of ground breaking information and not getting hit by Mixx, Digg, or Slashdot, just have a post titled with the words “Two Blondes and a Brunette” in it. By writing about this subject I could be asking for comment spam on this blog too.

Have any of you had similar stories of getting spammed, just because of a blog post title? If so what did you do to stop it?

The “Fire Vox” Firefox extension is a FREE screen reader

Over a month ago I downloaded the Fire Vox Free screen reader extension for Firefox that acts like a screen reader and was created by Charles L. Chen.

I found that it was of great use and I assume it simulates most of the major functions that screen readers like JAWS or Window-Eyes can do, since I have never used either one of those.

Here is a little more information about the two screen readers I mentioned earlier and information about there cost.

  • JAWS – free trial (shuts off machine every 40 minutes) and $900 – $1100 to purchase a full version .
  • Window-Eyes – 60 day trail $39 or $900 to purchase a full version.

Fire Vox does not have all the bells and whistles that the other two have. I have not been able to find how to increase or decrease the speed of the speaking voice.

Some uses for the Fire Vox Firefox screen reader extension.

  • To see how your website will be to someone that uses a regular screen reader for someone with visual issues.
  • Now close your eyes and listen to your website to see if you can navigate and find information. You should be able to, since you created the website.

After awhile of using Fire Vox you might want to turn off the auto speaking function. All of the commands for Fire Vox on at least a PC are done with CTRL + SHIFT + some default key. To get to the list of functions you have to use CTRL +SHIFT + M to get the pop-up menu and un-click the “Speak Events” and “Echo Keys” checkboxes. This will then only allow the screen reader to be activated when you use the following key strokes CTRL +SHIFT + A or when a pop-up window occurs. This allows someone that needs these functions to still be able to get them to work.

For a full explanation please read the post on the Accessify Forum on how to turn off speaking all the time. To get Fire Vox to stop reading/speaking you can hit any key on the keyboard.

Here are some of the functions that Fire Vox does have are their default settings.

  • Auto Read – CTRL + SHIFT + A
  • Read Previous – CTRL + SHIFT + D
  • Read Next – CTRL + SHIFT + F
  • Repeat – CTRL + SHIFT + E
  • Say Selected Text – CTRL + SHIFT + O
  • Spell Out – CTRL + SHIFT + S
  • List of Headings – CTRL + SHIFT + H

There are a great bunch of Fire Vox tutorials on their website that will explain a lot more. There is no point of repeating all that information here.

Here is the links to the exercises from the Fire Vox tutorial page.

  1. Reading Text and Navigating Web Pages
  2. Getting Additional Information
  3. Working With Forms
  4. Working With Live Regions

So please download the Fire Vox free screen reader extension for Firefox and try it out. Tell me what you think.