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?
(1)
some text<br>some more text

(2)
some text<br>
some more text

(3)
some text
<br>some more text

(4)
some text
<br>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:46 GMT