How to add a paragraph with HTML

Using paragraphs are quite simple. You just need the following HTML code…

<p>Your content</p>

A paragraph contains two tags. A starting p tag and an ending p tag. In between you will write your content. Paragraphs does not contain any attributes but you can add an ID or a class for styling purposes. Styling is not included in this tutorial but we will provide an example below.

<p class="blue-text">This is a great tutorial</p>

In your CSS you can now style this paragraph with the blue-text class.

  Written by: Michael from Beginnrtuts.com     25-08-2022     Written in: HTML tutorials

Leave a Reply

Your email address will not be published.