Creating Paragraphs in HTML Web Page

To create paragraphs in an HTML web page, use the <p> element. The opening and closing tag look like,

<body>
   <p></p>
</body>

The <p>…</p> comes inside the <body>…</body> tags. The below example shows how to add paragraph in a web page,

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Paragraphs Example</title>
   </head>
   <body>
      <h2>Learn for free</h2>
      <p>Adding paragraphs in a web page.</p>
      <p>Studyopedia is a free learning website. It provides free learning for all.</p>
   </body>
</html>

The output:

Create Paragraphs in HTML

More Examples


HTML Basic Examples
Page links in an HTML Web Page
Tags:
Studyopedia Editorial Staff
[email protected]

We work to create programming tutorials for all.

No Comments

Post A Comment