Thursday, 19 December 2013

Lesson 3: Aligning Text In HTML

When creating a webpage, different types of alignment of text is needed. For example a text can be on the left side of page or in the center of the page etc. To achieve this, we need to use alignment tag. <p></p> is used to write a paragraph, i.e., it is used as <p>A Paragraph</p>.

Keyword 'align' is used as <p align="center"> to align any text or any image to center of a page.
For example: <p align="left">Some text</p>
<p align="center">Some text</p>
<p align="right">Some text</p>
<p align="justify">Some text</p>

This Text Is Left Aligned

This Text Is Center Aligned

This Text Is Right Aligned

This Text Is Justified


This text alignment is very useful to create a very intresting webpage, by showing text at different places of a page.

See More Tutorials <- Click Here

No comments:

Post a Comment