Paragraphs and Line Breaks (P and BR Tags) in HTML, Free online HTML Tutorial, Learn HTML online for free...
|Lessons||Paragraphs and Line Breaks|
The paragraph tag:
is first paragraph</p>
The result is:
This is first paragraph
This is second paragraph
Note that the browser automatically inserts a blank line between paragraphs.
Paragraph alignment can be controlled by using the align attribute. The align attribute takes the values; left, right, center or justify.
<p align="left">Paragraph Left aligned</p>
Paragraph Left aligned
<p align="center">Paragraph Centered</p>
<p align="right">Paragraph Right aligned</h2>
Paragraph Right aligned
<p align="justify">Paragraph Justified.....Note that the paragraph will only justfy itself if it is more than a single line...</h2>
Paragraph Justified.....Note that the paragraph will only justfy itself if it is more than a single line...
Some times we need to have a line break instead of having a paragraph break. In thoses cases we can use <br>. It is a stand alone tag and does not have a matching end tag.
This is line One. <br> This is Line Two.
The Result is:This is line One.
This is Line Two.
Next >>> Lesson No. 10: Working with colors in HTML