W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: (code, sample output and keyboard/device input <code>, <samp>, <kybd>) part of my review of 3.12 Phrase elements

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 20 Jul 2007 12:48:56 +0200
To: "Robert Burns" <rob@robburns.com>, "HTML WG" <public-html@w3.org>
Message-ID: <op.tvrezu1y64w2qv@annevk-t60.oslo.opera.com>

On Fri, 20 Jul 2007 08:55:48 +0200, Robert Burns <rob@robburns.com> wrote:
> The <pre><code> example seems  like less than best practice. Why not  
> simply use <code style='white-space: pre;' >some code with line- 
> breaks</code> or even just <pre class='c-plusplus-code' >some c++ code  
> here</pre>. Either of those contain the same or more semantics without  
> adding another level to the hierarchy.

The former won't work when CSS is disabled (CSS is an optional language).  
The latter doesn't give you any semantics unless you define some  

Anne van Kesteren
Received on Friday, 20 July 2007 10:49:23 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:24 UTC