HTML Paragraph Summary
A paragraph groups related sentences together into one block of text.
In HTML, a paragraph is written with a <p> opening tag and a </p> closing tag. The text that belongs together goes between those tags.
<p>This is one paragraph about a web page.</p>
<p>This is another paragraph with a separate idea.</p>
Each paragraph normally starts on a new line and gets some space around it. That is because paragraphs are block elements, so they take up their own row in the page flow.
When to Use Paragraphs
Use a paragraph for sentences that belong together, such as an introduction, an explanation, a description, or a note. A new idea usually belongs in a new paragraph.
Do not use paragraphs for everything on the page. Headings, lists, buttons, images, and other page parts have their own HTML elements.
Paragraphs and CSS
Paragraphs do not exist mainly to make text look a certain way. HTML marks what the text is, and CSS controls how that text looks.
Because a paragraph is an HTML element, CSS can target it with a selector. That lets you change paragraph size, spacing, color, and other visual details without changing the meaning of the HTML.