BASIC HTML 101

Overall HTML format: More Commonly Used Tags



"Preformatted Text"

The PreFormatted style, which is named <PRE> in HTML, is used to display a block of text in a fixed-width font. One of its main uses has been to put things in a table format without having to use the HTML table formatting specifiers.

R1C1    R1C2    R1C3
R2C1    R2C2    R2C3

The Typewriter style, which is named <TT> in HTML, displays text in a fixed-width typewriter font.

The Sample style, which is named <SAMP> in HTML, displays text in a monospaced style.

Horizontal Bars

The style that can be used to separate parts of a document is the Horizontal Rule, which is named <HR> in HTML. It looks like this:


and with <HR WIDTH=50%>
and with <HR WIDTH=50% ALIGN=LEFT>
and with <HR WIDTH=50% ALIGN=RIGHT>

Comments

Comments which the browser will not display can be inserted anywhere in the HTML document. This is sometimes useful for editing purposes, for example, clarifying nested tables. Although "Comment Text" will not be displayed by the browser, it can be seen via View/DocumentSource. Comments are delimited by a less-than-symbol, exclaimation-point, dash, dash character string to begin the comment, and, a dash, dash, greater-than-symbol character string to terminate the comment, as follows:

<!--THIS TEXT WOULD NOT BE DISPLAYED-->
Note: comments cannot be nested.

BASIC HTML 101 
 Paragraph Control and Special Characters


Page provided by D*R*A's Monterey Office.

This page is maintained by RUSSELL HOLDER and does not represent any views or policies of and is not affiliated in any way with my employer.

Last update: 03APR98 0644HRS RAZ

Russell@dra.com