[uf-discuss] Formating Code

Ryan King ryan at technorati.com
Tue Nov 1 14:43:11 PST 2005

On Nov 1, 2005, at 11:27 AM, Jacob Ham wrote:

> Is there really a need to use both 'pre' and 'code' elements?

<code> == "this is code"
<pre> == "the whitespace is significant"

Different semantics, both often apply to source code (esp. Python).

> I admit
> that I have done the the same thing.  There is the CSSv1 element
> 'white-space' that helps relieve this problem
> [http://www.w3.org/TR/CSS1#white-space].  There isn't really a need
> for using <pre> at all.

That's right if you think of <pre> as merely a presentational  
element. See my definition above for another alternative.

Ryan King
ryan at technorati.com

More information about the microformats-discuss mailing list