HTML5 – Paragraphs
Paragraphs are used to group related content on a web page and to separate content into logical sections. In HTML5, paragraphs are represented by the <p>
element.
Here is an example of how to use paragraphs in HTML5:
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>
Paragraphs can contain text, images, and other inline elements. By default, paragraphs are displayed with a blank line before and after them, to help visually separate them from other content.
You can style paragraphs using CSS, such as by changing the font, color, size, or alignment. You can also apply CSS classes or IDs to paragraphs to give them specific styles.
Here is an example of how to style a paragraph using CSS:
p {
font-family: Arial, sans-serif;
font-size: 16px;
color: #333;
text-align: justify;
}