W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2000

HTML 4.01 documentation // Line breaks in SGML/HTML

From: Nicolas Roeser <n-roeser@gmx.net>
Date: Sat, 13 May 2000 11:01:28 +0200
Message-ID: <000001bfbcc2$3c915ce0$01287b41@pc001>
To: <www-html-editor@w3.org>
Dear HTML editor(s),

in the HTML 4.01 Specification I noticed a problem about the declaration of
line breaks in SGML: the specification says <quote>"that a line break
immediately following a start tag must be ignored, as must a line break
immediately before an end tag. This applies to all HTML elements without
exception."</quote> But what about empty elements? Are they handled as a
start tag, as an end tag or both?

Example: Is there a difference between the following parts of HTML text?
some text<br>some more text

some text<br>
some more text

some text
<br>some more text

some text
some more text

(This example could include the <img ...> or some another empty tag instead
of the <br> tag as well.)

Thanks in advance for your answer,

Nicolas Roeser
Received on Saturday, 13 May 2000 06:02:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:22 UTC