[thelist] Please Check my Site

Martin martin at members.evolt.org
Sun Aug 26 15:14:20 CDT 2001


Olly Hodgson wrote on 26/8/01 8:06 pm

>Now a question for the other DW gurus: Is there any way to find every
>instance of an image in a site, and add an ALT tag to it (if necessary), eg
>set all the spacer.gif's alt tags to "Spacer Image"?

Don't know if DW's Search/Replace will work on code (or just content),
but HomeSite & BBedit sure will.

However, think of how this will render in a speech browser... Something
like
"Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image, Spacer Image, Spacer Image, Spacer Image, Spacer Image, 
Spacer Image"
(try reading that aloud mid-page content, or better yet, download
a speech browser like IBM's HomePage Reader or JAWS and have
all the annoyance with none of the effort)

Remember that the Alt attribute isn't just there for fun - it's
to represent the image for users who can't see it. If the effect
is only visual (ie really doesn't have any semantic content like
a spacer image), you'd be better to put
alt=""
or
alt=" "

Cheers
Martin

_______________________________________________
email: martin at easyweb.co.uk             PGP ID: 0xA835CCCB
       martin at members.evolt.org      snailmail: 30 Shandon Place
  tel: +44 (0)774 063 9985                      Edinburgh,
  url: http://www.easyweb.co.uk                 Scotland





More information about the thelist mailing list