Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Paragraphs

Overview

  • After div, Paragraphs are the most used block-level Elements.
  • Paragraphs are mostly used to contain the text data that is visible on a Web Page.
  • There are multiple paragraphs on a Web Page and mostly they are followed (in multiple numbers) after some heading given inside (h1 to h6) tags.

Paragraph tags in HTML

Paragraphs are one of the most used tags in HTML. Nearly, all the data that is written in text mostly goes inside paragraph tags.

Paragraphs are block level elements and each paragraph automatically goes to a new line. Most often the structure of HTML dom (document object model) is such as, there is a div as wrapper, and it contains one header tag (H1 to H6) followed by few paragraphs. Though, this is a general dom structure and you may like to make your own pattern of tags, this is the normal coding standard.

<p>This is a paragraph.</p>

To understand usage with Header tags, look at this scenario. For example, the header might talk about a nation like USA, while the paragraph would contain text data providing details of its formation, population, and other information.

The example below shows the 3 paragraphs. Note that each of them goes to a new line (as in case of block elements).

Example

<body>
  <p>This is paragraph 1.</p>
  <p>This is paragraph 2.</p>
  <p>This is paragraph 3.</p>
</body>

div and paragraph tags are the most common block elements. While setting layout of a web page, these play major role in achieving it.

Further Reading

1. <p>: The Paragraph element

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.