www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons Paragraphs and Line Breaks Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
Usually in our writings, we seperate the blocks of text called paragraphs by adding extra blank lines in between. HTML treats all text as one single paragraph unless we add paragraph markers around each paragraph of text. These paragraph markers produce one blank line in between blocks of text.

The paragraph tag:
Start Tag: <p>
End Tag: </p>

<p>This is first paragraph</p>
<p>This is second 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 Alignement:

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>

Paragraph Centered

<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

Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.