Paragraph Tag In Html
<p> tag:
The <p> tag in HTML represents a paragraph. <p> Tag have both
opening and closing tag. So anything mentioned within <p> and </p> is treated as a paragraph. Paragraph Tag has Attribute
align . Most browsers read a line as a paragraph even if we don’t use the
closing tag i.e, </p>, but this may raise unexpected results. So, it is
both a good convention and we must use the closing tag . paragraph tag is a container tag it is
always present in pairs .
The <p> tag offers a way to structure your text into different paragraphs. Each paragraph of text should go in between an opening <p> and a closing </p> tag as shown below in the example:
Example 1 <p> Tag :
<!DOCTYPE
html> <html> <head> <title>Paragraph Example</title> </head> <body> <p>Here is a first
paragraph.</p> <p>Here is a second
paragraph.</p> <p>Here is a third
paragraph.</p> </body> </html>
|
<!DOCTYPE
html> <html> <head> <title>Paragraph Example</title> </head> <body> <p style="text-align:
right;">Here is a first paragraph.</p>
<p style="text-align:
center;">Here is a second paragraph.</p> <p>Here is a third
paragraph.</p> </body> </html>
|
Output:
<!DOCTYPE
html> <html> <head> <title>Paragraph Example</title> p{
color: red;
font-size: 50px;
} </style> </head> <body> <p style="text-align:
right;">Here is a first paragraph.</p>
<p style="text-align:
center;">Here is a second paragraph.</p> <p>Here is a third
paragraph.</p> </body> </html>
|
Heading Tag In Html Please Visit This Link:
Image Tag In Html Please Visit This Link:
Searches
related to paragraph tag in html
pre
tag in html
html
tags
html
paragraph spacing
br
tag in html
div
tag in html
hr
tag in html
html
space between paragraphs
html
new line without <br>
0 Comments
Please do not enter any spam links in the comment box