Reply to Re: duplicating <pre> with other tags

Your name:

Reply:


Posted by Mark Parnell on 01/21/80 11:54

Deciding to do something for the good of humanity, John O'Conner
<jsoconner2@NOSPAMearthlink.net> declared in alt.html:

> I've been told that I can no longer use pre-tags for code sample text.

Why? By who? Certainly not the W3C.

> My question is this: how can I duplicate the pre-tag functionality with
> other tags

white-space: pre; - but support is not as good as it is for the <pre>
element (not supported by IE<6).

There was a discussion of this only last week or something. IIRC the
consensus was that generally the best solution is something along the
lines of:

<pre><code>
code here
</code></pre>

--
Mark Parnell
My Usenet is improved; yours could be too:
http://blinkynet.net/comp/uip5.html

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация