13 replies [Last post]
jdl
Offline
Enthusiast
Last seen: 17 years 22 weeks ago
Joined: 2005-04-25
Posts: 54
Points: 0

For an image <img src ="image.gif" alt="blah blah blah"> where the description is the length of a small paragraph. Do you have to make it
alt="blah.html" or is there another way so the description doesn't go in one long line off the page?

larmyia
Offline
Elder
London
Last seen: 14 years 2 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

alt text question

for long descriptions I think you can use

longdesc="blah.html"

I'm sure someone will correct me if I'm wrong.

larmyia

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 15 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

alt text question

That's exactally right but I am sure I read somewhere about poor support for the longdesc property?

Also does anyone know if non screen readers are able to access it in anyway, or do most browsers just ignore it?

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 22 weeks 3 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

alt text question

The alt text is alternate text, which should be displayed if the image cannot be viewed (ie broken link or text browser).

The title is the title of the image, ie describing what it is, eg "Graph showing rainfall between 2001-2002."

IIRC, you should punctuate the title, so screen readers know when to pause.

Verschwindende wrote:
  • CSS doesn't make pies

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 15 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

alt text question

Thanks Laughing out loud

And the longdesc is? Wink

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 22 weeks 3 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

alt text question

Verschwindende wrote:
  • CSS doesn't make pies

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 15 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

alt text question

It was a rhetorical question Wink

As a note of interest you said

Quote:

The alt text is alternate text, which should be displayed if the image cannot be viewed (ie broken link or text browser).

The title is the title of the image, ie describing what it is, eg "Graph showing rainfall between 2001-2002."

I would add that the alt text is supposed to describe the function/meaning of the image.

Anyway back to the original point, does anyone know the support for longdesc?

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 22 weeks 3 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

alt text question

Well according to the link I posted (first one), it says 'Browsers that do not support longdesc shouls have alt used instead' or something like that - however, it doesn't actually say which browsers don't support it. :roll:

Verschwindende wrote:
  • CSS doesn't make pies

larmyia
Offline
Elder
London
Last seen: 14 years 2 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

alt text question

briski, I'm also not sure about the support. I'm sure I read it's not so good (surprise! surprise!). However, since you can put alt as well as longdesc, I guess you're covering your bases as much as you can?

larmyia

edit: apparently pwWebSpeak supports it, but not widely supported by mainstream screen readers. apparently. not much out there on it.

briski
briski's picture
Offline
Elder
London
Last seen: 10 years 15 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

alt text question

Ineed!

One of TPH's links says

For user agents that don't support "longdesc", provide a description link as well next to the graphic:

Example.

   
<IMG src="97sales.gif" alt="Sales for 1997" longdesc="sales.html">
<A href="sales.html" title="Description of 1997 sales figures">[D]</A>

Which seems like the only method of garunteeing a decent long desc working but it's not all that nice looking alsa Crying

larmyia
Offline
Elder
London
Last seen: 14 years 2 weeks ago
London
Timezone: GMT+1
Joined: 2005-01-25
Posts: 1060
Points: 0

alt text question

briski wrote:

Which seems like the only method of garunteeing a decent long desc working but it's not all that nice looking alsa Crying

alsa no! Wink

jdl
Offline
Enthusiast
Last seen: 17 years 22 weeks ago
Joined: 2005-04-25
Posts: 54
Points: 0

alt text question

ummm so there is no alternative right? unless you add on more who can't view the first solution eg
For user agents that don't support "longdesc", provide a description link as well next to the graphic:

Example.

<IMG src="97sales.gif" alt="Sales for 1997" longdesc="sales.html">
<A href="sales.html" title="Description of 1997 sales figures">[D]</A>

End example.
bah humbug

HellsBells
HellsBells's picture
Offline
Leader
Bedford, UK
Last seen: 14 years 22 weeks ago
Bedford, UK
Joined: 2004-04-07
Posts: 851
Points: 0

alt text question

Came up with this link to Malarkey's site with a few suggestions for alternatives http://www.stuffandnonsense.co.uk/archives/accessible_alternatives.html

My strategy is so simple an idiot could have devised it!

"Also, your CSS (no offence) makes me want to gouge my eyes out with a rusty spoon" - TPH

jdl
Offline
Enthusiast
Last seen: 17 years 22 weeks ago
Joined: 2005-04-25
Posts: 54
Points: 0

alt text question

thanks