115k views
3 votes
Provide an example of making multiple paragraphs tags using html and at least 3 sentences.

User Lhooq
by
5.1k points

1 Answer

2 votes

Answer:

<p> tag:

The <p> tag in HTML defines a paragraph. These have both opening and closing tag. So anything mentioned within <p> and </p> is treated as a paragraph. 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.

Syntax:

<p> Content </p>

Example:

<!DOCTYPE html>

<html>

<head>

<title>Paragraph</title>

</head>

<body>

<p>A Computer Science portal for geeks.</p>

<p>It contains well written, well thought articles.</p>

</body>

</html>

Output:

A computer Science Portal for geeks.

It contains well written, well thought articles.

User Nspire
by
5.7k points