473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help with accesskey syntax

Hi folks,

Not sure that syntax is the right term but anyway...

I'm currently working a a new section of a website and I want to make it
as accessible as possible - hence the accesskey. On each page there will
be around 15 links to other pages. Is there a standard way of marking up
the accesskey attribute.

Below is the code for the navbar section of the site, and as you can see
I have applied a span tag, and assigned it a class, to a differant
letter of each of the links.

Is this the correct/best way of doing it?. Thanks for reading

Alex

<snippet>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td class="urhere">Software <span class="acckey">H</span>ome</td>
</tr>
<tr>
<td><a href="alex/userarea.htm" tabindex="1" accesskey="u"><span
class="acckey">U</span>ser Area</a></td>
</tr>
<tr>
<td><a href="alex/prosystem.htm" tabindex="2" accesskey="p">CCH
<span class="acckey">P</span>roSystem</a></td>
</tr>
<tr>
<td><a href="alex/taxpoint.htm" tabindex="3" accesskey="t">CCH
<span class="acckey">T</span>axpoint</a></td>
</tr>
<tr>
<td><a href="alex/cchgains.htm" tabindex="4" accesskey="g">CCH
<span class="acckey">g</span>ains</a></td>
</tr>
<tr>
<td><a href="alex/corporate.htm" tabindex="5" accesskey="a">CCH
Corpor<span class="acckey">a</span>te</a></td>
</tr>
<tr>
<td><a href="alex/trusttax.htm" tabindex="6" accesskey="r">CCH
T<span class="acckey">r</span>ust</a></td>
</tr>
<tr>
<td><a href="alex/pension.htm" tabindex="7" accesskey="e">CCH
P<span class="acckey">e</span>nsion</a></td>
</tr>
<tr>
<td><a href="alex/proaudit.htm" tabindex="8" accesskey="d">CCH
PROau<span class="acckey">d</span>it</a></td>
</tr>
<tr>
<td><a href="alex/prosystem.htm" tabindex="9" accesskey="c">CCH
PRO<span class="acckey">C</span>ap</a></td>
</tr>
<tr>
<td><a href="alex/procost.htm" tabindex="10" accesskey="s">CCH
PROco<span class="acckey">s</span>t</a></td>
</tr>
<tr>
<td><a href="alex/profix.htm" tabindex="11" accesskey="f">CCH
PRO<span class="acckey">f</span>ix</a></td>
</tr>
<tr>
<td><a href="alex/taxmanger.htm" tabindex="12" accesskey="m">CCH
Tax<span class="acckey">M</span>anager</a></td>
</tr>
<tr>
<td><a href="alex/etax.htm" tabindex="13" accesskey="x">CCH
e-Ta<span class="acckey">x</span></a></td>
</tr>
<tr>
<td><a href="alex/client_relate.htm" tabindex="14"
accesskey="l">CCH CLIENT<em>re<span
class="acckey">l</span>ate</em></a></td>
</tr>
<tr>
<td><a href="alex/client_advisor.htm" tabindex="15"
accesskey="">CCH CLIENT<em>ad<span
class="acckey">v</span>isor</em></a></td>
</tr>
</table>

</snippet>

Jul 20 '05 #1
6 3181
Alex Billerey wrote:
I'm currently working a a new section of a website and I want to make it
as accessible as possible - hence the accesskey.
That tends to have the opposite effect. Suppose you use H for website
help -- a logical choice -- and a Mozilla user tries to get help not for
you website but for his browser. He presses <alt-H>, but instead of
help, he goes to another page on your site. Since accesskeys are not
widespread, it is entirely likely that this behavior will confuse him,
instead of getting him to the help system of the browser.
Is there a standard way of marking up the accesskey attribute.
No, and that's just one of the problems. J. Korpela has a proposal you
might want to read:

http://www.cs.tut.fi/~jkorpela/forms/accesskey.html

One section suggests a possibility of a "standard" of a kind.
Below is the code
In the future, a url is usually better than pasting your code in a message.
for the navbar section of the site, and as you can see
I have applied a span tag, and assigned it a class, to a differant
letter of each of the links.

Is this the correct/best way of doing it? <table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td class="urhere">Software <span class="acckey">H</span>ome</td>
</tr>
<tr>
<td><a href="alex/userarea.htm" tabindex="1" accesskey="u"><span
class="acckey">U</span>ser Area</a></td>
</tr>


This does not look like tabular data to me, so why have you used tabular
markup? If there's only one item in each row, then perhaps it more of a
list.

<ul>
<li>menu item 1</li>
<!-- etc. -->
</ul>
Unless you add a column:

H Home
U User Area

etc.

Then a table would be appropriate. In fact, that seems like the best
choice. Make it a genuite table.

<table> <!-- get rid of presentation html; use css instead -->
<tr>
<td>H</td>
<td class="urhere">Software <span class="acckey">H</span>ome</td>
</tr>
<tr>
<td>U</td>
<td>
<a href="alex/userarea.htm" tabindex="1"
accesskey="u"><span class="acckey">U</span>ser
Area</a>
</td>
</tr>
<!-- etc. -->
--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
On Tue, 27 Apr 2004 23:51:59 +0100, Alex Billerey
<aa*************@clara.net> wrote:
<a href="alex/userarea.htm" tabindex="1" accesskey="u"><span
class="acckey">U</span>ser Area</a>


Just using this bit - and as Brian said, a list would be better unless
it's truly a table - the problem is that non-CSS browsers won't see the
letter. I'd use perhaps <strong>U</strong>ser instead, and use CSS to
style it something like this:

#accesskeys strong {
text-decoration: underline;
font-weight: normal;
}

This way, non CSS browsers will see some change to the letter, and CSS
browsers will likely see the style you suggest.
Jul 20 '05 #3
Alex Billerey wrote:
I'm currently working a a new section of a website and I want to make it
as accessible as possible - hence the accesskey. On each page there will
be around 15 links to other pages. Is there a standard way of marking up
the accesskey attribute.

Below is the code for the navbar section of the site, and as you can see
I have applied a span tag, and assigned it a class, to a differant
letter of each of the links.


Similar to my effort, although I didn't use the unnecessary tabular layout:

http://billericaybaptist.net/

--
Mark.
http://tranchant.plus.com/
Jul 20 '05 #4
DU
Brian wrote:
Alex Billerey wrote:
I'm currently working a a new section of a website and I want to make it
as accessible as possible - hence the accesskey.

That tends to have the opposite effect. Suppose you use H for website
help -- a logical choice -- and a Mozilla user tries to get help not for
you website but for his browser. He presses <alt-H>, but instead of
help, he goes to another page on your site. Since accesskeys are not
widespread, it is entirely likely that this behavior will confuse him,
instead of getting him to the help system of the browser.
Is there a standard way of marking up the accesskey attribute.

No, and that's just one of the problems.


Well, Opera has adopted <Shift>+<Esc> to get into document access mode
and then you type the accesskey. There is a bugfile on bugzilla which
promotes the same feature too. At least, this is becoming a strong
possibility.

J. Korpela has a proposal you might want to read:

http://www.cs.tut.fi/~jkorpela/forms/accesskey.html

One section suggests a possibility of a "standard" of a kind.
Below is the code

In the future, a url is usually better than pasting your code in a message.

Agreed.

for the navbar section of the site, and as you can see
I have applied a span tag, and assigned it a class, to a differant
letter of each of the links.

Is this the correct/best way of doing it?


<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td class="urhere">Software <span class="acckey">H</span>ome</td>
</tr>
<tr>
<td><a href="alex/userarea.htm" tabindex="1" accesskey="u"><span
class="acckey">U</span>ser Area</a></td>
</tr>

This does not look like tabular data to me, so why have you used tabular
markup?


[snipped]

Exactly what I thought too: the use of table is not justified here.
That's the first issue with the given code.

DU

Jul 20 '05 #5
DU wrote:
Brian wrote:
Alex Billerey wrote:
I want to make it as accessible as possible - hence the
accesskey.
That tends to have the opposite effect. Suppose you use H for
website help -- a logical choice -- and a Mozilla user tries to get
help not for you website but for his browser. He presses <alt-H>,
but instead of help, he goes to another page on your site.


Opera has adopted <Shift>+<Esc> to get into document access mode and
then you type the accesskey.


The only one afaik.
There is a bugfile on bugzilla which promotes the same feature too.
At least, this is becoming a strong possibility.


Perhaps. But there's no new version of MSIE until the Windows os comes
out. And even with Mozilla, it is only proposed. Given how slow people
update their browsers, it will be some time yet before there's a 2nd
browser that does not counfound HTML accesskeys and browser keyboard
shortcuts.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #6
Thanks folks.

Tables will get replaced with list(s) - at the time a table seemed
easier. I think that on reflection they are more trouble than they are
worth from a 508/WAI perspective.

I did a quick refit and ditched the idea of advising visitors via use of
a boldened letter. I hadn't thought about css disabled/over-ridden
browsers - duh!!! I'm now thinking about using the title tag to convey
this info, along with tabindex number

http://billericaybaptist.net/

I liked the accesskey navbar.

Alex
"Alex Billerey" <aa*************@clara.net> wrote in message
news:10****************@lotis.uk.clara.net...
Hi folks,

Not sure that syntax is the right term but anyway...

I'm currently working a a new section of a website and I want to make it as accessible as possible - hence the accesskey. On each page there will be around 15 links to other pages. Is there a standard way of marking up the accesskey attribute.

Below is the code for the navbar section of the site, and as you can see I have applied a span tag, and assigned it a class, to a differant
letter of each of the links.

Is this the correct/best way of doing it?. Thanks for reading

Alex

<snippet>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td class="urhere">Software <span class="acckey">H</span>ome</td> </tr>
<tr>
<td><a href="alex/userarea.htm" tabindex="1" accesskey="u"><span
class="acckey">U</span>ser Area</a></td>
</tr>
<tr>
<td><a href="alex/prosystem.htm" tabindex="2" accesskey="p">CCH
<span class="acckey">P</span>roSystem</a></td>
</tr>
<tr>
<td><a href="alex/taxpoint.htm" tabindex="3" accesskey="t">CCH
<span class="acckey">T</span>axpoint</a></td>
</tr>
<tr>
<td><a href="alex/cchgains.htm" tabindex="4" accesskey="g">CCH
<span class="acckey">g</span>ains</a></td>
</tr>
<tr>
<td><a href="alex/corporate.htm" tabindex="5" accesskey="a">CCH
Corpor<span class="acckey">a</span>te</a></td>
</tr>
<tr>
<td><a href="alex/trusttax.htm" tabindex="6" accesskey="r">CCH
T<span class="acckey">r</span>ust</a></td>
</tr>
<tr>
<td><a href="alex/pension.htm" tabindex="7" accesskey="e">CCH
P<span class="acckey">e</span>nsion</a></td>
</tr>
<tr>
<td><a href="alex/proaudit.htm" tabindex="8" accesskey="d">CCH
PROau<span class="acckey">d</span>it</a></td>
</tr>
<tr>
<td><a href="alex/prosystem.htm" tabindex="9" accesskey="c">CCH
PRO<span class="acckey">C</span>ap</a></td>
</tr>
<tr>
<td><a href="alex/procost.htm" tabindex="10" accesskey="s">CCH
PROco<span class="acckey">s</span>t</a></td>
</tr>
<tr>
<td><a href="alex/profix.htm" tabindex="11" accesskey="f">CCH
PRO<span class="acckey">f</span>ix</a></td>
</tr>
<tr>
<td><a href="alex/taxmanger.htm" tabindex="12" accesskey="m">CCH
Tax<span class="acckey">M</span>anager</a></td>
</tr>
<tr>
<td><a href="alex/etax.htm" tabindex="13" accesskey="x">CCH
e-Ta<span class="acckey">x</span></a></td>
</tr>
<tr>
<td><a href="alex/client_relate.htm" tabindex="14"
accesskey="l">CCH CLIENT<em>re<span
class="acckey">l</span>ate</em></a></td>
</tr>
<tr>
<td><a href="alex/client_advisor.htm" tabindex="15"
accesskey="">CCH CLIENT<em>ad<span
class="acckey">v</span>isor</em></a></td>
</tr>
</table>

</snippet>


Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jim | last post by:
Hi, How can one put an accesskey on a Select (Drop down box) in a form using XHTML 1.0? It won¢t validate as follows: <select accesskey="r" tabindex="3" name="state" size="1"> I can put an...
0
by: david cheng | last post by:
I am trying to load the pdf document through AccessKey. Here is the code <HTML> <body bottomMargin="0" bgColor="gray" leftMargin="0" topMargin="0" rightMargin="0"> <form id="Form1"...
1
by: WJ | last post by:
How do I set the AccessKey property of a Web Label control on my Asp.Net ? Ex: Lebel Text Name is "Name", I like to see letter "N" underlined so that I can use ALT+N to force the system focus on...
9
by: Udo Marx | last post by:
Greets to ciwah! I'm doing a little webproject for a local session event. Tryin' to meet latest standards i failed to do this: --snip-- <select name="fromcountry" accesskey="l" title="+">...
0
by: theintrepidfox | last post by:
Hi Guys Is there any way to set 'alt', 'longdesc' attributes and an AccessKey property for a MenuItem? I need it to make it to comply with accessibility guidelines for impaired users. Any...
1
by: Csaba Gabor | last post by:
Short version: if the user types an alt+ctrl+char combination which leads to a defined character, but s/he's not in a input(text)/textarea, then I'd like that keystroke combination to do the same...
3
by: Ioannis Stefis | last post by:
Hi! I put an & to make an AccessKey in the text property of a Button in MyForm using the & before the first letter of the text, for example &Spin. I see in the design mode the S underlined but not...
2
by: onlymukti4u | last post by:
I have a page with three other pages added with Iframes, I just want to jump from one page to another by giving accesskey. Can anyone tell me how to give accesskey to iframes to move from one iframe...
5
by: Lea GRIS | last post by:
Hello, Are there any generic and CSS standard mean of highlighting an accesskey? I only fond a workaround by encapsulating the corresponding letter in a <em></eminside the label. But it is not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.