> -----Original Message----- > From: Lea de Groot [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 8 December 2004 11:33 PM > To: [EMAIL PROTECTED] > Subject: Re: [WSG] alt or title... > > > On Wed, 8 Dec 2004 23:06:52 +1100, Brett Walsh wrote: > > I am using the strict dtd so as far as I understand I'm meant > to use alt for > > links and title for images. Or is it the other way around? Or both? > > The other way around - the alt attribute goes on the img tag, to > provide some information when the image isnt available (eg screen > readers, text browsers). The alt attribute is required on img tags, but > may be blank if the image is purely decorative. > The title attribute goes on the anchor tag, and is optional. It is to > provide additional information on the link, over and above what appears > in the link text.
It's good practise to have the title attribute also on images (in addition to the ALT), as some browsers won't display the ALT Text as a tooltip. ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
