o7planning

HTML Paragraphs Tutorial with Examples

  1. HTML Paragraph

1. HTML Paragraph

The <p> element in HTML represents a paragraph. The paragraph usually displays as a block. It is separated from other blocks by a blank line or an indented first line.
<h3>Paragraphs</h3>

<p>Geckos are a group of usually small, usually nocturnal lizards.
  They are found on every continent except Australia.</p>
<p>Some species live in houses where they hunt insects attracted by artificial light.</p>
The <p> element is commonly used for textual content. It may contain inline elements. You should not use it to contain block-level elements. The HTML parser will automatically close the paragraph if it encounters a block-level element that appears in the <p> opening tag and the </p> closing tag.
Tags should not appear in the <p></p> called "Tag Omission".
  • <address>
  • <article>
  • <aside>
  • <blockquote>
  • <div>
  • <dl>
  • <fieldset>
  • <footer>
  • <form>
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <header>
  • <hr>
  • <menu>
  • <nav>
  • <ol>
  • <pre>
  • <section>
  • <table>
  • <ul>
  • <p>
<p>
  The paragraph does not allow <h4>a block-level element</h4> to stay within it.
</p>