text
<p>
Represents a paragraph — a block of running text separated from its neighbors. Use it for prose; do not use it as a generic wrapper for other block-level content.
<p>Some paragraph text.</p> Common attributes
| Attribute | Purpose |
|---|---|
| class | Styling hook |
| id | Anchor / JS hook |
| lang | Language of this paragraph |
| dir | Text direction (ltr, rtl, auto) |
Examples
<p>HTML is the language of the web.</p> Standard paragraph
<p lang="fr">Bonjour le monde.</p> Paragraph in French for correct hyphenation and TTS
<p>Line one<br>Line two</p> Line break inside a paragraph
Gotcha
cannot contain block-level elements like
,
- ,