Click to See Complete Forum and Search --> : Access keys??


gd4
04-26-2006, 06:04 AM
I have just started looking into the whole accessibility thing and so far so good apart from access keys. I just can't figure out what code I am suppose to put and where. I have searched and read through threads on here and on other sites and I am obviously having a slow few days as I can't seem to get it sorted. Here is what I have just tried to add in the body of my html page (I changed the 'one.htm' to a page wihtin the root folder of my site...but nothing happened....what am I doing wrong??? :o

<a href="one.htm" tabindex="1" accesskey="q">One</a><br/>
<a href="two.htm" tabindex="w" accesskey="b">Two</a><br/>

I want to use these standard access keys for my site...what would be the code??

(Please bear in mind that I am not too good with code etc..all quite new to me...)

UK Government accesskeys standard:
S - Skip navigation
1 - Home page
2 - What's new
3 - Site map
4 - Search
5 - Frequently Asked Questions (FAQ)
6 - Help
7 - Complaints procedure
8 - Terms and conditions
9 - Feedback form
0 - Access key details

THANK YOU anyone who can help :)

mcskiver
04-26-2006, 07:50 AM
Just from looking at it I think your code looks fine, but depending on which browser you're using you need to use a key to activate the accesskey.

By that I mean, in Firefox I think you use Alt + your accesskey to activate the link.

So for example, to open "one.htm" in the code you've given, you'd need to hold down the Alt key and then press your accesskey - in this case "q".

gd4
04-27-2006, 05:32 AM
Ok, so I have put the code within the body of the html.

I end up having the numbers one and two on top of each other and showing up?? Is that suppose to happen?!

Also, nothing happens when I press Alt and q

I am using IE

Any ideas?? :o

gd4
04-27-2006, 06:31 AM
I have just worked out what I need to press of my IE - Alt and q followed by enter...that now seems to work :)

I still have one and two visable on my page though...how can I get rid of this?

How can enable people to tab through my site? Can they do this if I just have the access keys? How would they do this?

Thanks

mcskiver
04-27-2006, 06:36 AM
Your HTML above contains two links, one of "one" and the other "two". They're supposed to appear....otherwise what else would you click??

In order to tab through your links you could add the "taborder" attribute, but in most cases you don't need to add anything, then the user can tab through your links in the order they are written into the page.

gd4
04-27-2006, 06:54 AM
Ok, so on the site I design...where I place the text for the link I follow that text with

tabindex="1" accesskey="q">One</a><br/>

??

thanks

mcskiver
04-27-2006, 07:06 AM
Sorry, I don't understand. Have you written any HTML before?

Maybe you should try the tutorials at www.w3schools.com

gd4
04-27-2006, 12:19 PM
don't worry i will get it sorted..thanks for your time.

Robert Wellock
05-03-2006, 11:49 AM
Try not to use alphabet letters for the accesskey values.