HTML <p> tag
- closing tag
- required
- void element
- no
- lives inside
- <body>
- typically holds
- a paragraph of text
Where it goes
Anywhere in <body> you have a paragraph of text. It is a block, so it always starts on its own line.
Example
<p>This is the first paragraph.</p>
<p>This is the second.</p>Open this example in the editor →
Common mistakes
- Using several <br> tags to fake the space between paragraphs. Start a new <p> instead. It already has that space.
- Putting a block like <div>, <ul> or another <p> inside a <p>. A paragraph only holds text and small inline tags. The browser quietly closes the <p> the moment a block appears, and your structure scrambles.
- Forgetting to close a <p> before the next one opens. The browser recovers, but your CSS and outline become unpredictable.