HTML Lesson 4: text alignment

The default text alignment for content in a paragraph is left side. Sometimes you may want to make the text align to the right or in the center. To make the text align to the left or right you include the align attribute to the paragraph tag.

Example, align to left:

<P ALIGN=”LEFT”>This attribute will
make the content align to the left.
It is not necessary to include
this attribute because the default
alignment is already as such.</P>


Example, align to right:

<P ALIGN=”RIGHT”>This attribute will
make the content align
to the right.</P>


To make the content align to the center, use the CENTER tag. This tag can be used on any element of the website, not just for text content, but also for graphic, tables, or any other display items that you wish it to remain in a centered alignment.

Example:

<P> <CENTER>This attribute will
make the content align
to the center.</CENTER> </P>



Related Posts Plugin for WordPress, Blogger...



Leave a Reply

Blue Captcha Image
Refresh

*

Google  Site Search for JanLeow.com


Bookmark and Share

Enter your email address:

RSS Delivered by FeedBurner