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: <NOBR> - Returning to the question....

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 12 Apr 2004 21:20:59 +0300 (EEST)
To: www-html@w3.org
Message-ID: <Pine.GSO.4.58.0404122117270.12887@korppi.cs.tut.fi>

On Mon, 12 Apr 2004, Ian Hickson wrote:

> On Mon, 12 Apr 2004, Jukka K. Korpela wrote:
> > On Mon, 12 Apr 2004, Ian Hickson wrote:
> >> If you have *blocks* of text in which the newlines are important, then it
> >> is preformatted text, and the <pre> element is relevant.
> >
> > Maybe, but <pre> has _four_ components in its meaning:
> > - preserve newlines
> > - do not wrap
> > - preserve spaces
> > - use monospace font.
>
> No, it has one meaning. "The contents have already been formatted and
> shouldn't be formatted further".

If you say so. This one meaning still has four components, so it is not
quite correct to recommend it if you only know that _one_ of those
components ("newlines are important") is desired.

> In effect it is an "escape" from HTML's
> user agent stylesheet.

Really? I thought <pre> existed long before style sheets were a reality.

> Python and JavaScript are both languages where newlines can affect the
> semantics of the code.

Python, yes. JavaScript, in part. In any case, <nobr> can be used just for
that part of the content where line breaks shall be prevented.

> I have lost track of whether you are arguing in favour of <code> and
> saying that <nobr> should be deprecated or arguing in favour of <nobr> and
> saying that it is not purely presentational (or some other argument). Both
> seem to be supported by the paragraph I quoted above, depending on how you
> read it.

Really? Anyway, I have argued that <nobr> is semantic, and so is <code>,
and they are orthogonal.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/ 
Received on Monday, 12 April 2004 14:21:01 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.