Computer >> Computer tutorials >  >> Programming >> HTML

How to create Paragraphs in HTML Page?


HTML provides <p> tag to add paragraph to an HTML Document. It has a start tag <p> and an end tag </p>. Always use <p>…</p> tags inside <body>…</body> tag.

Just keep in mind, multiple <p>…</p> can be used in an HTML page inside the <body>…</body> tag. 

How to create Paragraphs in HTML Page?

Example

You can try the following code to create paragraphs in an HTML page −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Paragraphs</title>
   </head>

   <body>
      <p>Our first HTML Document.</p>
      <p>HTML is easy to learn</p>
   </body>
</html>

Output

Our first HTML Document.

HTML is easy to learn