• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Text Alignment

Some HTML tags allow you to specify a variety of options, or attributes, along with the basic tag itself. For example, when you begin a paragraph with the <p> tag you can specify whether the text in that paragraph should be aligned to the left margin, right margin, or center of the page.

To align a paragraph to the right margin, you can put align="right" inside the <p> tag at the beginning of the paragraph. To center a paragraph, use <p align="center">. Similarly, the tag to align a paragraph to the left is <p align="left">. (This is seldom used because paragraphs are always aligned to the left when you use plain old <p>.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint