RE: IETF HTML V. 2.0 Question

On Wed, 12 Jun 1996 08:59:48 -0400, "Solko, Dave (SOLKODE)" <SOLKODE@exchange.uc.edu> wrote:
> >From: 	murray@spyglass.com
> >Sent: 	Thursday, June 6, 1996 9:39PM
> > Those that are processed in a document instance need
> >to
> >be 'escaped'. In HTML these include STAGO ('<'), TAGC ('>'), LIT ('"')
> >and
> >ERO ('&').
> >
> 
> So, in order for my HTML to be proper SGML, I have to use the escape
> characters for all quotes, ampersands and angle-brackets? I have only
> found the need to escape from the angle-brackets (and actually, only the
> less than sign) in order for my HTML to be displayed correctly and
> validate.

You also need to escape the quote if it appears inside a quoted attribute
value:

<img src="hello.gif" alt="Jonny says &quote;Hi!&quote;">

Of course, you could also use single quotes to quote the ALT text, it's
just that only few browsers support this. And the ampersands you need to
escape if combined with following text it could be confused with an
entity (e.g. "The units volt&amp are important in Electrical Engineering").

Marcus E. Hennecke
marcush@crc.ricoh.com        http://www.crc.ricoh.com/~marcush/

Received on Wednesday, 12 June 1996 14:05:30 UTC