Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: line breaks in XHTML 2.0

From: David Woolley <david@djwhome.demon.co.uk>
Date: Mon, 7 Nov 2005 23:45:12 +0000 (GMT)
Message-Id: <200511072345.jA7NjD609242@djwhome.demon.co.uk>
To: www-html@w3.org

> Talking of line breaks, why was it decided that <br> should be a tag
> and not an entity, eg: &br; which seems to make more sense to me...

Named entities can only be the equivalent of what you could write using
numeric entities and normal markup.  In HTML and XHTML, they are always
exactly one numeric entity.  Numeric entities represent characters in the
base character set.  Named entities are simple macros.

The character set for the original HTML was ISO 8859/1.  The origal 
meaning of <br> was like .br in troff and \break in TeX, which is not
an unconditional newline, but a request to dump any partial line and 
advance only if it wasn't empty.  There is no ISO 8859/1 character that
has exactly those semantics, and other vertical motion characters were
considered white space and ignored.

There is also a general trend to not use named entities, because they
cannot be handled by a general purpose, but non-validating, XML parser,
and because there are already too many of them in HTML 4.01.
Received on Monday, 7 November 2005 23:45:52 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.