HTML Tutorial - Paragraph Tags, Attributes and Headings (Page 2 of 12 )
Let us discuss about the <P> tag, which creates a new paragraph as shown in Listing 3.
<P> Many online services require you to enter information, such as your user name and password, to establish a connection. You can create a Dial-Up Networking script that provides this information automatically, so you do not have to type it each time you connect. To create a Dial-Up Networking script, use a text editor, such as WordPad or Notepad </P>
It is not compulsory to close the <P> tag. But as said before, closing every tag is a good programming practice.
Before proceeding further, it's important to learn the concept of attributes. Attributes are similar to properties. They are used to change the behavior of the content matter. In order to align the above paragraph text to right you have to make use of ALIGN attribute. All attributes in HTML are predefined. ALIGN attributes takes three values like Left, Center and Right. Applying the code <P ALIGN = "Center"> will start the paragraph from the Center position. You will come across many such attributes in the coming sessions.
Working with Headings
You can use headings to organize your text in various levels. There are five levels of headings in HTML as given below:
<H1>This is Heading Level - 1 </H1> <H2>This is Heading Level - 2 </H2> <H3>This is Heading Level - 3 </H3> <H4>This is Heading Level - 4 </H4> <H5>This is Heading Level - 5 </H5>