Jun 09
24
How to use paragraph formatting html tag and its attribute
We will use starting tag <p> and ending tag </p> to format the given text in a paragraph format in a html page. You can understand clearly by seeing following example.
Input:
<p>I am teaching you the lesson of paragraph formatting html tag in this post<p>
<p>Just read and learn, download source code to practice on your computer<p>
click here source to see the notepad txt file para.txt
Output:
I am teaching you the lesson of paragraph formatting html tag in this post
Just read and learn, download source code to practice on your computer
click here Result to see the uploaded file para.html
Attribute for paragraph
- center
- left
- right
Syntax is
<P ALIGN=’center’>This paragraph tag with center attribute of paragraph will align this matter to center of a page</P>
<P ALIGN=’left’>This paragraph tag with left attribute of paragraph will align this matter to left of a page</P>
<P ALIGN=’right’>This paragraph tag with right attribute of paragraph will align this matter to right of a page</P>
Type above code in notepad and save the file as .html page and open with a browser to see the three paragraphs with aligned as we directed in a source file
Ask for any doubts on this lesson in comments section of this post. I teach this online interactively through video chat and i will show my screen of doing an experiment on paragraph formatting html tag








