Webmaster

HTML : Text formatting
Contents ]
Jérôme Versavel

Paragraphs and Alignment

The default for an HTML content is to appear in one block. You must define the use of paragraphs, line breaks, titles, or other elements in your code with the appropriate tags.

Line break:

To force a line break in a page, add a <BR> tag. It is a singleton tag, which means it is used without a closing tag.

Example:

Here is a line break.<BR> We are at the beginning of a new line.

The result is:

Here is a line break.
We are at the beginning of a new line.

Paragraphs

The <P> tag, which stands for paragraph, can lighten a document. It shows the beginning of a paragraph which ends with the closing </P> tag.

This tag can include the ALIGN attribute, to choose an alignment for the paragraph within the page:

Default is on the left: <P Align="left">

in the center: <P Align="center">

or on the right: <P Align="right">



  1   2   3   4   5   6   7 
Headings