One-Hour HTML Tutorial

Lesson 3: Formatting Paragraphs

Paragraphs can be aligned by using the ALIGN attribute within the <P>tag at the beginning of the paragraph. (Remember to end the paragraph with </P>). They can be:

    left     - This is the default
    right
    center
    justify

There is another tag called Blockquote you can use to format a paragraph. This will indent both the left and right sides of the paragraph.

    <BLOCKQUOTE></BLOCKQUOTE>

See examples below

Code (in text editor)Display (in web browser)
<P ALIGN=left>The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.</P>

The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.

<P ALIGN=right>The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.</P>

The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.

<P ALIGN=center>The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.</P>

The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.

<P ALIGN=justify>The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.</P>

The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.

<BLOCKQUOTE>The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.</BLOCKQUOTE>
The quick brown fox jumps over the lazy brown dog. To be or not to be, that is the question. Cogito ergo sum.

 


by Robert Dolores