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

Re: XHTML 2.0 and <pre> element

From: fantasai <fantasai@escape.com>
Date: Wed, 06 Nov 2002 00:29:56 -0500
Message-ID: <3DC8A8D4.5090202@escape.com>
To: www-html@w3.org

Devon Y. wrote:
> Hi,
>  I'm by no means an expert in the subject, but shouldn't the <pre> 
> element be moved to the presentation module, or perhaps become extinct? 
> The way I understand it, XHTML 2.0 is to be semantic and structural. In 
> this context, since <pre> says nothing about it's contents and 
> everything about it's presentation, it seems it's really a purely 
> presentational element.

"pre" is short for "preformatted", not "preserve whitespace". A quoted
plaintext email or a code snippet is preformatted, and markup that states
this is not presentational.


See http://www.w3.org/TR/html40/struct/text.html#h-9.3.4
Presentation is suggested, not recommended, for <pre>--as it is in the
next section for <p>.

Received on Wednesday, 6 November 2002 00:30:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:01 UTC