Saturday 28 September 2013

HTML

(Paragraph Tag) tag with attributes

To Begin a New Paragraph the <p> opening tag and </p> ending tags are used. these Paragraph tags also have parameters as part of the tag. These parameters allow you to Left Justify, Center, or Right Justify the text on the web page. Most web browsers have started supporting the parameter to the <p> tags, however, not all browser support them.
The following HTML paragraph tag allows for the left Justification of the paragraph. Please note that if the parameter is omitted, it will be defaulted to left justification. I provide it here for documentation purposes only! 
<p ALIGN="left">This Paragraph will be Left Justified</p>
The following HTML paragraph tag allows for the Centering of a particular paragraph.

<p ALIGN="center">This Paragraph will be Centered on the Web Page</p>

The following HTML paragraph tag allows for the Right Justification of the Paragraph

<p ALIGN="right">This Paragraph will be Right Justified on the Web Page</p>

There is a Netscape extension tag that is used to center text. Some of the browser's that do not support the parameters on the Paragraph tag will support the extension <center> and </center> tags. For this reason, I try to make a habit of placing these tags around the Paragraph tags. Take a look at the following example:


<center><p ALIGN="center">This Paragraph will be Centered on the Web Page</p></center>

No comments:

Post a Comment