html tutorial - <p> - Paragraph tag in Html with Example - html5 - html code - html form




p paragraph tag in html

Learn html - html tutorial - p paragraph tag in html - html examples - html programs

Definition of Paragraph tag:

  • Paragraph tag is used to display paragraph in the html document.
  • Browsers automatically add some blank space before and after a paragraph.
  • Paragraph tag is the block-level element.
  • <p> tag belongs to Flow content, phrasing content.
  • <p> tag supports Global Attributes and Event Attributes.

Syntax for <p> tag:

<p>This is My Paragraph </p>

Sample coding for <p> tag:

Tryit<!DOCTYPE html>
  <html>
    <head>
        <title>
            Wikitechy paragraph tag 
        </title>
    </head>
    <body>
        <h2>Wikitechy paragraph tag</h2> 
        <p>
            Learn to Code in Wikitechy
        </p>
        <p>
            Teach people how different technologies are organized 
            Covers a Variety of topics.
        </p>
    </body>
  </html>

Code Explanation for <p> tag:

Code Explanation for <p> tag

  1. <h2> tag is declare for the title of the paragraph content.
  2. First paragraph content is given within the <p> tag.
  3. Second paragraph content is mention within the <p> tag.

Output for <p> tag:

Output for <p> tag

  1. The output shows the heading of the Paragraph.
  2. Here the content of the paragraph is displayed in the output.

Browser Support for <p> tag:

Yes Yes Yes Yes Yes

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×