Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

<PRE ...>

Usage Recommendation
thumbs up use it

<PRE ...> is one the handiest tags in the HTML toolbox. <PRE ...> marks the text as "preformatted" -- all the spaces and carriage returns are rendered exactly as you type them.

<PRE>
             title            extension
Raha         Producer         8765
Kathy        Accountant       8924
Scarlett     Security Guard   8273
</PRE>

produces

             title            extension
Raha         Producer         8765
Kathy        Accountant       8924
Scarlett     Security Guard   8273

<PRE ...> text is rendered in a fixed width font, meaning that all characters and spaces are the same width. Fixed width makes it easy to lay out the text just the way you want it, so <PRE ...> is great for creating "quick and dirty" tables like the one above.

<PRE ...> does NOT cause the browser to ignore tags. You can still create links and other goodies:

<PRE>
             title             extension
<A HREF="raha.html"    >Raha</A>         Producer          8765
<A HREF="kathy.html"   >Kathy</A>        Accountant        8924
<A HREF="scarlett.html">Scarlett</A>     Security Guard    8273
</PRE>

produces

             title             extension
Raha         Producer          8765
Kathy        Accountant        8924
Scarlett     Security Guard    8273

When you start adding markup, it gets harder to see how the text turns out (spacing your tags out evenly like the table above helps). <PRE ...> is often used to quote large blocks of text that you don't want to "HTMLize", but a < or > could mess up the text. For a table larger than a few lines, it is usually easier in the long run to use table code.


Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: