Master AI & Build your First Coding Portfolio with SkillReactor | Sign Up Now

Lesson 2 - HTML Tags And Elements

2.2 Paragraphs

HTML paragraphs are essential for displaying blocks of text on webpages. To create a paragraph, use the <p> tag.

<p>This is a paragraph. It contains some text.</p>

In this example:

  • <p> is the opening tag that signifies the start of a paragraph.
  • This is a paragraph. It contains some text. is the content of the paragraph.
  • </p> is the closing tag that denotes the end of the paragraph.

By using the <p> tag, you can structure and organise textual content effectively on your webpage.