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>



Tags: , ,

Leave a Reply

Google  Site Search for JanLeow.com

Recent Posts

  1. Finally installed Windows 7
  2. Google Webmaster Central DNS Verification Method
  3. Leow surname history
  4. Colic in Infants and Colic Cure
  5. Baby Night Out
  6. My Desktop Computer Becoming Slower, Time to Reformat
  7. Careful about Email Spoofing
  8. Jaundice in newborns and Jaundice treatment
  9. Jhoos dating messenger scam site
  10. Build a better mouse trap and customers will beat a path to you
  11. Important To Back Up My PC
  12. Pos Malaysia Postal Rates July 2010
  13. Cure for Boils
  14. How to switch off Bing background
  15. Words of Inspiration Quotes on Confidence


  Jan's Personal Blogs at Blogged

Jan's blogs about life

↑ Grab this Headline Animator

Subscribe To
This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Add to Newsgator
Subscribe with Bloglines RSS update via Email

Enter your email address:

RSS Delivered by FeedBurner