Quick Tip Quick Index

Preformatted Text

Sometimes you have text that you want to lay out evenly. It's easy to do this when using a word processor: just choose Courier or a similar monospace font. To preformat your text in HTML, making everything even, use the tags <PRE> and </PRE>. This will force the use of the Courier (or similar) font.
unit      symbol   quantity
-------------------------------------------
ampere      A      electric current
candela     cd     luminous intensity
kelvin      K      thermodynamic temperature
kilogram    kg     mass
meter       m      length
mole        mol    amount of substance
second      s      time

If you're using a word processor to create your document, it's best to design preformatted text using Courier, since you'll use the space bar to move to the right. Notepad uses Courier as a default, and most HTML editors do so, as well.

Back to Quick Tip Quick Index

Caveat: all tutorials are designed for the most frequently used browsers and systems, and may not work in all instances. All files on the parent directory are copyrighted by WebGrammar®. Any reproduction or editing by any means mechanical or electronic without the express written permission of the copyright holder is strictly prohibited. For further information, contact Judy Vorfeld