View Full Version : HTML in an ALT tag

Aug 16th, 2007, 10:03 AM
I am using the DHTML Image Gallery FroggyJS and want to put HTML formatting into the alt tag of the image used in the gallery.

Is there a quick or easy or even complicated way of doing this so that FF does not give me an XHTML error?


Aug 16th, 2007, 11:54 AM
Not that I'm aware of without a Javascript workaround…although the alt attribute of an element shouldn't have markup in it—sort of defeats the purpose of having alternate content.

Aug 16th, 2007, 01:01 PM
You can have sweet titles (http://www.dustindiaz.com/sweet-titles/), though.