p
A paragraph of prose or explanation.
Learn p, blockquote, pre, hr, address as part of the HTML element system: when to use it, how it fits inside a document and what mistakes to avoid.
Text blocks
Text is not one single thing. A paragraph, a quote, a preformatted block and a thematic break each mean something different.
Using the right text block element makes content easier to read, style, quote, scan and maintain.
p, blockquote, pre, hr, address. Paragraphs, quotes, preformatted text, contact details and topic breaks. Syntax in context
Do not create paragraphs with line breaks or divs. Use p for prose and specialized elements when the text has a special role.
<p>HTML describes the structure of a document.</p> <blockquote> <p>Structure first. Styling second.</p> </blockquote> <pre>line 1 line 2 indented line</pre> <address>Contact: hello@example.com</address> <hr>
Good versus weak
<p>HTML describes the structure of a document.</p> <blockquote> <p>Structure first. Styling second.</p> </blockquote> <pre>line 1 line 2 indented line</pre> <address>Contact: hello@example.com</address> <hr>
<div>HTML describes the structure of a document.</div> Text line<br><br>Another fake paragraph <p>"A quote without quote markup"</p>
Rules that matter
Do not use div or br to fake normal paragraphs.
Use blockquote for longer quoted material, not only italic styling.
Use pre when spaces and line breaks are part of the content.
An hr signals a topic break, not a decorative line.
Do not use address for every physical address; it is for contact information tied to the page or article.
Production thinking
Beginners often ask why this is not just a div with styling. The reason is that HTML is read by browsers, search engines, screen readers and future developers. Clear meaning makes the page easier to use and maintain.
Correct text blocks help assistive technology communicate the kind of text a user is reading.
Clean text markup makes CMS content, documentation and article templates much easier to style consistently.
Live code lab
Edit the HTML or CSS, then use Run to refresh the preview. The preview is isolated, so links and forms stay inside this practice area.
Mini assignment
Practice assignment
Try it yourself
Self-check
Do not only read this page. Answer these questions out loud or write the answers in your own notes. If one answer feels vague, revisit the examples before moving on.