W3C home > Mailing lists > Public > www-html@w3.org > November 1998

Re: alt text

From: Dave Raggett <dsr@w3.org>
Date: Thu, 26 Nov 1998 16:23:56 +0000 ()
To: Johannes Ewalt Koch <koch@physik.TU-Berlin.DE>
cc: WWW-HTML Mailingliste <www-html@w3.org>
Message-ID: <Pine.WNT.3.95.981126162042.-256169K-100000@hazel.hpl.hp.com>
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


-- 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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:49 UTC