Why do we use <p> in our HTML document?
When we need a description in our web site or more text in a
section like paragraph, then we use <p> in our HTML Document.
<p> are mostly used for block-level elements. It starts on a new
line. It is used in structural grouping content.
Syntex:
<p>
Hay hello web developer!!!. This is
the paragraph. if we want to need
a new line you need to take extra tag break.
</p>
Here we used <p> to write some text. <p> used in <body> tags.
Note: Browser ignores line break or extra space
inside <p> Browser will manage margin automatically
before and after the tag <p>
Example:
<!DOCTYPE html>
<html >
<head>
<title>Basic get in </title>
</head>
<body>
<p>
Hay hello web developer!!!. This is
the paragraph. if we want to need
a new line you need to take extra tag break.
</p>
</body>
</html>
OUTPUT:
Post a Comment