HTML Paragraph Tag

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,

<!DOCTYPE html> 
<html> 
<head> 
<title>Paragraph Example</title> 
</head> 
<body> 
<p>Here is a first paragraph of text.</p> 
<p>Here is a second paragraph of text.</p> 
<p>Here is a third paragraph of text.</p> 
</body> 
</html>

Why are Paragraph Tag needed?

The <p> tag in HTML is used to represent text as paragraphs. It makes the text on a web page clear, readable, and structured.

If you write all the text at once without the <p> tag, it will appear jumbled up in a single line or block.

Leave a Comment