Paragraphs in HTML
? Paragraphs in HTML
The <p> tag is used to define a paragraph in HTML.
Basic Syntax
<p>This is a paragraph of text.</p>Features
Browsers automatically add some space above and below paragraphs.
You can include text, inline elements, and other content inside
<p>.
Example
<p>This is the first paragraph on the page.</p><p>This is another paragraph with <strong>bold text</strong> and <em>italic text</em>.</p>Important Notes
Do not put block-level elements like
<div>,<h1>, or<p>inside a<p>.Paragraphs help structure your text content for readability and SEO.
Want to know how to style paragraphs with CSS or add line breaks inside paragraphs?