W3C home > Mailing lists > Public > www-html@w3.org > November 2002

Re: line breaks vs. line elements (comments on XHTML 2.0 text module)

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 8 Nov 2002 10:04:07 +0000 (GMT)
To: Peter Sheerin <pete@petesguide.com>
Cc: html-w3c <www-html@w3.org>
Message-ID: <Pine.LNX.4.21.0211081000130.3467-100000@dhalsim.dreamhost.com>

On Wed, 6 Nov 2002, Peter Sheerin wrote:
>
> ----------------------------------------------
>      The displacements of the membrane
> under load are described by the equations
> 
> [two fancy math expressions were here]
> 
> where r is the radial coordinate, a is the
> radius of the clamping edge, w is the
> transverse...
> ----------------------------------------------
> 
> So, in XHTML, this would be:
> 
> <p>The displacements of the membrane
> under load are described by the equations<br />
> <math>
> [two fancy math expressions were here]
> </math>
> where r is the radial coordinate, a is the
> radius of the clamping edge, w is the
> transverse...</p>

No it wouldn't. It would be:

   <p>The displacements of the membrane under load are described by the
   equations
   <math>
    [two fancy math expressions were here]
   </math>
   where r is the radial coordinate, a is the radius of the clamping edge,
   w is the transverse...</p>

...and the stylesheet would imply the linebreak by using display:block or
some such.

The <br/> has absolutely no semantic reason to be in that example. The key
phrase which is a good indicator of this is:

   there is a need to force a linebreak to make sure that space is left
   for the figure and so that text justification may occur

There is _never_ a need, _in HTML_, to force a linebreak, or to ensure
that "space is left", or to do anything with "text justification". HTML is
a semantic markup language, not a page description language.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 8 November 2002 05:04:09 GMT

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