Arrow

HTML Paragraphs

AuthorHariom Prajapati

Pubish Date23 Mar 2024

categoryHTML 5

In HTML, the <p> tag is used to define a paragraph. It's one of the most basic and commonly used tags in HTML for text formatting.

  • Each <p> tag defines a new paragraph
  • <p> tag is a block-level elements

Syntax

<p>  </p>

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Paragraph Tag</title>
</head>

<body>
  <p>This is the first paragraph.</p>
  <p>This is the second paragraph.</p>
  <p>This is the third paragraph.</p>
  <p>This is the fourth paragraph.</p>
</body>

</html>

Output

Try it Yourself »