How to change font colour in HTML document

How to change font colour in HTML document


How to change font colour

Introduction

In this Article we will learn How to change Font Colour in any HTML Document. We will also change it through CSS also. So Lets get start.

Normal Font

This Is Normal Font

This Is Italic Font

This Is Cursive Font

This is Monospace Font

Here is some Normal Font with default HTML Format like :-

<p style="">This Is Normal Font</p>
<p style="font-style:italic;">This is Italic Font</p>
<p style="font-family:cursive;">This is Cursive Font</p>
<p style="font-family:monospace">This is Monospace Font </p>

Colour Font

This is very easy to import colour in Font Document where we will use HTML or CSS. In HTML we write this in Style tag and In CSS we write this in .class tag. Here is the best Example to Understand it.
<p style="color:red;">This Is Normal Font</p>
<p style="color:blue;font-style:italic;">This is Italic Font</p>
<p style="color:green;font-family:cursive;">This is Cursive Font</p>
<p style="color:purple;font-family:monospace">This is Monospace Font </p>

Output

This Is Normal Font

This Is Italic Font

This Is Cursive Font

This is Monospace Font


So This is the best way to change Font colour in HTML document. If you like this Then share your other friends who's have great interest.

Comments

Post a Comment

Please Don't Spam Here !!