How to change colour of a paragraph in HTML

Htmlcolourchart

There are a number of ways to create a paragraph and add some colour to the text. In this blog post I'm going to list a couple of ways you can add a paragraph in HTML and change the colour of the text to purple.

Adding the colour by name

One way of creating a paragraph in HTML and add a colour is by specifying the colour in the style for the attribute 'color' please see below.

<p style="color:purple"> This text will appear in Purple </p>

Adding the colour by hexadecimal value

<p style="color:#b56af5"> This text will appear in Purple </p>