Re: alt text

On Thu, 26 Nov 1998, Johannes Ewalt Koch wrote:

> Hi there,
> I hope this is not off topic.
> Is it possible to have something like "<>" in the value of an alt
> attribute or do I have to use "&lt;&gt;"?

Yes its ok, provided you enclose the attribute value in quote marks
e.g.  alt="<<hello world>>". However some older (very old, now)
browsers treat the first > as ending the tag. Hence the advice to
use entities in the attribute value. If you tidy up your markup
with my tidy utility this done automatically. You also get your
markup nicely formatted and many of your markup errors fixed.
See http://www.w3.org/People/Raggett/tidy

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
tel/fax: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)

Received on Thursday, 26 November 1998 11:20:54 UTC