Previous Next

HTML Paragraphs

The <p> tag is used to specify a paragraph in a webpage. A paragraph always starts on a new line, and browsers automatically include some white space around it.

Example:

 <p> Hello, welcome to this HTML tutorial </p>
 <p> This is a paragraph </p>

Output

paragraphs output image

Styling in paragraph

To format paragraphs in HTML, you can employ CSS.

 <p style="background-color:aquamarine; color:red;"> This is a paragraph </p>

Output

paragraphs output image
Previous Next