Re: White space and inline elements

* Masayasu Ishikawa wrote:
>> My suggestion is that content providers should be told that writing
>> leading or trailing white space is deprecated inside these inline
>> elements.
>
>That's why the HTML 4 specification, "9.1 White space" says as follows:
>
>    In order to avoid problems with SGML line break rules and
>    inconsistencies among extant implementations, authors should not rely
>    on user agents to render white space immediately after a start tag or
>    immediately before an end tag. Thus, authors, and in particular
>    authoring tools, should write:
>
>        <P>We offer free <A>technical support</A> for subscribers.</P>
>
>    and not:
>
>        <P>We offer free<A> technical support </A>for subscribers.</P>
>
>  cf. http://www.w3.org/TR/html4/struct/text.html#h-9.1

Section B.3.1 of HTML4 says, line breaks immediately following a start
tag or immediately preceding an end tag must be removed; this constraint
is missing in XHTML 1.0.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

Received on Wednesday, 15 August 2001 13:46:09 UTC