Ted Drake wrote:

I just came across something new for me.  I just started working with this company and 
they are using jsp with Tomcat and Jaquar as the server environment.  the pages are 
being built with Forte as the editor of choice.  I tried, in all my accessibility 
lovingness to add title tags to some images on a page today and it is telling me that 
the title tag is not allowed by the dtd and it won't parse the page.
here is our doctype
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd";>

+++++When is a title tag not allowed on an image?++++


You're right, it is allowed. I'm not sure, but I think I spotted the cause. If you look at the attibute list you'll notice there's no title:

<!ATTLIST IMG
 %attrs;                              -- %coreattrs, %i18n, %events --
 src         %URI;          #REQUIRED -- URI of image to embed --
 alt         %Text;         #REQUIRED -- short description --
 longdesc    %URI;          #IMPLIED  -- link to long description
                                         (complements alt) --
 name        CDATA          #IMPLIED  -- name of image for scripting --
 height      %Length;       #IMPLIED  -- override height --
 width       %Length;       #IMPLIED  -- override width --
 usemap      %URI;          #IMPLIED  -- use client-side image map --
 ismap       (ismap)        #IMPLIED  -- use server-side image map --
 align       %IAlign;       #IMPLIED  -- vertical or horizontal alignment --
 border      %Pixels;       #IMPLIED  -- link border width --
 hspace      %Pixels;       #IMPLIED  -- horizontal gutter --
 vspace      %Pixels;       #IMPLIED  -- vertical gutter --
 >

However, the fists attribute listed is "%attrs;" which, as the comment indicates, refers to %coreattrs, %i18n, and %events. You need to go to "%coreattrs;" before you find the "title" attribute. So the problem is your software is lazy.

I hope this helped (but I get the feeling it didn't). I guess it's time for a nasty email to the publisher.
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************




Reply via email to