HTML Paragraphs Tutorial with Examples
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>
HTML Tutorials
- Introduction to HTML
- Install Atom Editor
- Install Atom HTML Preview
- Starting with HTML
- HTML Images Tutorial with Examples
- HTML Block/Inline Elements Tutorial with Examples
- HTML Editors
- Install Atom-Beautify
- HTML Styles Tutorial with Examples
- HTML Hyperlinks Tutorial with Examples
- HTML Email Links Tutorial with Examples
- HTML Paragraphs Tutorial with Examples
- HTML IFrames Tutorial with Examples
- HTML Entities Tutorial with Examples
- HTML Lists Tutorial with Examples
- HTML Tables Tutorial with Examples
- HTML Col, Colgroup Tutorial with Examples
- HTML Headings Tutorial with Examples
- HTML Quotations Tutorial with Examples
- HTML URL Encoding Tutorial with Examples
- HTML Video Tutorial with Examples
- HTML Dir Attribute Tutorial with Examples
Show More