What does p mean in Html


The p is a tag in Html. Html <p> tag is used to define the paragraph in the documents. The <p> tag is a pair tag, so it is mandatory to close this tag. If we do not close this tag, then the Html editor takes each line in the paragraph.

We can also use the attribute align in the paragraph tag. The align attribute aligns the text within a paragraph.

We can easily understand the <p> tag by the examples. So, we will provide the following various examples.

Example 1: This example describes how to use the <p> tag in the Html document.

<!Doctype Html>  
<Html>     
<Head>      
<Title>     
Paragraph Tag  
</Title>  
</Head>  
<Body>   
<p>This is a paragraph. Paragraph contains more than one line.Html pargraph tag is used to define the paragraph in the documents. This tag is a pair tag, so it is mandatory to close this tag. </p> If do not close this tag, then the Html editor takes each line in the pargraph.   
</Body>   
</Html>  

The output of above Html code is shown in the following screenshot:

What does p mean in Html

Example 2: This example uses the align attribute in the paragraph tag in the Html document.

<!Doctype Html>  
<Html>     
<Head>      
<Title>     
Align attribute in Paragraph Tag  
</Title>  
</Head>  
<Body>   
<p align="center">This is a paragraph. Paragraph contains more than one line.<br>Html pargraph tag is used to define the paragraph in the documents.<br> This tag is a pair tag, so it is mandatory to close this tag.</p>   
<p align="right">If we do not close this tag, then the Html editor takes each line in the pargraph. </p>  
</Body>   
</Html>  
What does p mean in Html

Leave a Reply

Your email address will not be published. Required fields are marked *