Markup Tags

Sr.No. Topics
1

HTML

2
HEAD
3
TITLE
4
BODY
5
Headings
6
Paragraphs
7
Lists
8
Preformatted Text
9
Extended Quotations
10
Forced Line Breaks/Postal Addresses
11
Horizontal Rules

 

Preformatted Text

Use the<PRE> tag (which stands for "preformatted") to generate text in a fixed-width font. This tag also makes spaces, new lines, and tabs significant -- multiple spaces are displayed as multiple spaces, and lines break in the same locations as in the source HTML file. This is useful for program listings, among other things.

The <PRE> tag can be used with an optional WIDTH attribute that specifies the maximum number of characters for a line. WIDTH also signals your browser to choose an appropriate font and indentation for the text.

Hyperlinks can be used within <PRE> sections. You should avoid using other HTML tags within <PRE> sections, however.

Note that because <, >, and & have special meanings in HTML, you must use their escape sequences (&lt;, &gt;, and &amp;, respectively) to enter these characters. See the section Escape Sequences for more information.