There are many ways to format an HTML document. The text may be displayed, under current HTML standards, in one of three modes:
Time Place Name Amount ---- ----- ---- ------- 12:00 Here Bob $12.05 1:00 There John $ 1.50 3:00 Anywhere Anne $52.75
Will display as:
Time Place Name Amount ---- ----- ---- ------- 12:00 Here Bob $12.05 1:00 There John $ 1.50 3:00 Anywhere Anne $52.75
All HTML special codes are recognized here, so one must beware of using the HTML Special Characters ( < , > , and & ). It is very difficult, if not impossible to format text using this style. For that reason, Pre and Listing were developed.
pre tag (which stands for ``preformatted'') to include text
in a fixed-width font and to cause spaces, new lines, and tabs to be significant. Hypertext
references (and other HTML tags) can be used within < pre
> sections, so you can include links and graphics. This also means that you must be careful of
Special Characters ( < , > , and & ). Pre will not wrap at new lines and will not resize
to your screen. It will recognize new lines, tabs, and spaces. Thus, code written as:
< PRE > Time Place Name Amount ---- ----- ---- ------- 12:00 Here Bob $12.05 1:00 There John $ 1.50 3:00 Anywhere Anne $52.75 < /PRE >Will display as:
Time Place Name Amount ---- ----- ---- ------- 12:00 Here Bob $12.05 1:00 There John $ 1.50 3:00 Anywhere Anne $52.75Pre is especially useful if displaying columns or "saved-with-format" text, as long as there are NO un-intentional special characters in them. You may want to do a quick text-search of the documents before using PRE.
![]()
You must choose which format, or combination of formats, will serve your document best. One last consideration should be made to document congruity. A mix and match of these different types, because of their display and font differences, may or may-not suit your particular document.