[program-java] Re: HTML: Descriptive Text

  • From: "Homme, James" <james.homme@xxxxxxxxxxxx>
  • To: "program-java@xxxxxxxxxxxxx" <program-java@xxxxxxxxxxxxx>
  • Date: Mon, 12 Sep 2011 08:08:19 -0400

Hi,
Are you saying that you can't use display: none and visibility: hidden as 
inline attributes, but that we can use them in CSS classes? I'm confused.

Thanks.

Jim

From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of E.J. Zufelt
Sent: Friday, September 09, 2011 3:22 PM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: HTML: Descriptive Text

Hi,

In my example yes. However, you could add a class that hides the content 
visibly, but keeps it available to screen-reader users. You cannot do display: 
none or visibility: hidden, or it will be ignored.


Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt



On 2011-09-09, at 3:01 PM, Homme, James wrote:


Hi Everett,
Question: Is the paragraph visible to the sighted person?

Jim

From: 
program-java-bounce@xxxxxxxxxxxxx<mailto:program-java-bounce@xxxxxxxxxxxxx> 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of E.J. Zufelt
Sent: Friday, September 09, 2011 2:35 PM
To: program-java@xxxxxxxxxxxxx<mailto:program-java@xxxxxxxxxxxxx>
Subject: [program-java] Re: HTML: Descriptive Text

I've never used @longdesc for long descriptions. And, in fact it is currently 
not of html5, it has been removed. However, that decision may be reversed.

The longdesc attribute must be given a URL. The URL is then accessed by AT in 
order to get the description, taking people away from your page.

I recommend using aria-describedby, but this is only supported by newer 
technologies.

Example:

<img src="cat.jpg" alt="A cat" aria-describedby="description-1" />

<p id="description-1">This is a beautiful cat sitting on a chair</p>

This programmatically associates the image with its long description.

HTH,
Everett Zufelt
http://zufelt.ca

Follow me on Twitter
http://twitter.com/ezufelt

View my LinkedIn Profile
http://www.linkedin.com/in/ezufelt



On 2011-09-09, at 2:23 PM, Corbett, James wrote:



JH:

I bow my head in your presence.

Ok, what's your thoughts on the longdesc (Long Description) in place of the 
"alt" for longer more meaningful narratives?

Jim

-----Original Message-----
From: 
program-java-bounce@xxxxxxxxxxxxx<mailto:program-java-bounce@xxxxxxxxxxxxx> 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: September 9, 2011 14:14
To: program-java@xxxxxxxxxxxxx<mailto:program-java@xxxxxxxxxxxxx>
Subject: [program-java] Re: HTML: Descriptive Text

Hi JC,
The alt tag, first of all, is really not technically a tag. It's an attribute. 
The same with the title attribute.

The difference, technically, between them is that alt flashes the description 
in place on the screen when someone rolls a mouse over the tag that has the alt 
attribute. With the title attribute, when the mouse rolls over the tag, a tool 
tip pops up after a very short while.

For accessibility, it is recommended that the alt attribute be used for short, 
succinct descriptions. For accessibility, it is recommended that the title 
attribute be used for longer descriptions. In practice, though, you should most 
often use alt, because if JAWS sees alt, it doesn't look for title by default. 
If it sees title, it doesn't look for alt, even though web standards say that 
both are supposed to be exposed and used.

Also, practically speaking, you can often use title on radio buttons when 
screen space is cramped, visually.

A further note about the lack of screen reader support is that title is allowed 
to appear on just about any HTML tag, but screen readers only support it on a 
very few tags, most especially form controls, hyperlinks, and images.

Consequently, those of us who help make web sites accessible look bad when we 
speak out of one side of our mouth and advocate for standard coding practices, 
then out of the other side of our mouth, we say "Don't do that, because screen 
readers haven't caught up to standards that have been in place since 1999."

That's a little soap box with me. Sorry to rant.

Thanks.

Jim

-----Original Message-----
From: 
program-java-bounce@xxxxxxxxxxxxx<mailto:program-java-bounce@xxxxxxxxxxxxx> 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Friday, September 09, 2011 9:18 AM
To: 'program-java@xxxxxxxxxxxxx<mailto:'program-java@xxxxxxxxxxxxx>'
Subject: [program-java] HTML: Descriptive Text

Sorry, I meant to say the difference between "title" and the "alt" text tag?

Jim

James M. Corbett

Programmer / Analyst |
Canada Revenue Agency | Agence du revenue du Canada
875 Heron Rd.
Ottawa, On.
K1A0L5

James.Corbett@xxxxxxxxxxxxx<mailto:James.Corbett@xxxxxxxxxxxxx>
Telephone | Téléphone: (613) 941-1338
Facsimile | Télécopieur: (613) 941-2261

Government of Canada | Gouvernement du Canada

"Due to the highly confidential nature of my job, I'm not allowed to know what 
I'm doing."


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.




Other related posts: