2c-i. Paragraphs

Instead of specifying two <br> tags every time you want to start a new paragraph, you can just use the paragraph tag. This just looks like this: <p>. Paragraphs are cool in that they can take parameters, special extra instructions that make the command more specific. If you want to center your text, you have two options. You can either use the <center> tags as described above, or you can make a new paragraph and specify the alignment:

<p align=center>

If you wanted to make it right-aligned, just change "center" above to "right". By default, if you don't specify any alignment, the paragraph tag defaults to left-aligned.

You can also justify paragraphs, by which I do not mean defend their existence, but rather align it both left and right at the same time.

This is an example of a left-aligned paragraph with a lot of text in it so that you can properly see the effects of left-alignment.

This is an example of a justified paragraph with a lot of text in it so that you can properly see the effects of paragraph justification.

Left-aligned paragraph
Justified paragraph

Note that justification doesn't work on all browsers.


<-- back   ||   next -->
tutorial