Skip to main content

Paragraphs

As discussed earlier, HTML will treat all text as one paragraph unless paragraph markers are added around each physical paragraph. Paragraph markers will instruct the viewer to produce one blank line before displaying the text of the next paragraph.

The following codes are used for paragraph markers:

<p>
this marker should be typed at the beginning of every paragraph
</p>
this marker should be typed at the end of every paragraph

However, on some occasions, for example in tables, a paragraph marker is too crude, producing too much "white" space between the lines. To this end a line break marker (<br>)should be used. This instructs the viewer to place the following text on to the next line.

<p> and </p>
Should appear around normal paragraphs.
<br />
Should appear at the end of lines that should be broken.

Note: The <br /> code is a singleton and does not have a "code_off" partner but is self-terminating - as indicated by the / before the >. (X)HTML only has a few such markers


Example Text

This line and

this line are separated by a paragraph marker

whereas

This line and
this line are separated by a line break marker